aboutsummaryrefslogtreecommitdiffstats
path: root/main/s6-linux-utils/APKBUILD
blob: 056acb3a8ae615cd17cf9444ce1eecf89c97c382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Christian Kampka <christian@kampka.net>
# Maintainer: Christian Kampka <christian@kampka.net>
pkgname=s6-linux-utils
pkgver=2.0.2.3
pkgrel=0
pkgdesc="A set of tiny Linux-specific utilities optimized for simplicity and small size."
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
depends="skalibs"
depends_dev="skalibs-dev"
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-dev"
source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libdir=/usr/lib \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="e4ae28e1ca13d9cd7a226a2729c71bbf  s6-linux-utils-2.0.2.3.tar.gz"
sha256sums="f959ffb9bb79865018becc6664d29faef22cb747a43db252879e11886b1b8cc3  s6-linux-utils-2.0.2.3.tar.gz"
sha512sums="10d919c67036dbd57ed8d0e2ba46e1957c621414cae2326c2c696a27b46496d928aa768465236585ed8be279a2866cc9a519f9feb51b9757f999e9b8b80faf2d  s6-linux-utils-2.0.2.3.tar.gz"