aboutsummaryrefslogtreecommitdiffstats
path: root/main/s6-linux-utils/APKBUILD
blob: 33dcc3eb4424f0cc9dde85db012262dce2fced48 (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
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: Christian Kampka <christian@kampka.net>
pkgname=s6-linux-utils
pkgver=2.1.0.0
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 \
		--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="fe368efa0111ae2e7aec3081b1053165  s6-linux-utils-2.1.0.0.tar.gz"
sha256sums="3523ba84ba524198711b2de3edaaf620381a4e95d78ec6d13dcb7aba42397ead  s6-linux-utils-2.1.0.0.tar.gz"
sha512sums="a2bd997334b69c7d864ea14dd27af7b62c8a7b6ccf8f9431ed87f46590546e540a06577f04d2cf3e52299cd9819a31e926326862d751b8528bc98ec2f4e93913  s6-linux-utils-2.1.0.0.tar.gz"