aboutsummaryrefslogtreecommitdiffstats
path: root/testing/s6-linux-utils/APKBUILD
blob: efbd190bb8e134c9a99935c07702f2873b1b3c60 (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
50
# Contributor: John Regan <john@jrjrtech.com>
# Maintainer: John Regan <john@jrjrtech.com>
pkgname=s6-linux-utils
pkgver=2.0.2.0
pkgrel=0
pkgdesc="skarnet.org's Linux-specific utilities."
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
depends="skalibs"
depends_dev="skalibs-dev linux-headers"
makedepends="$depends_dev"
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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="e8ab822dbf990bd14f7fa955b028c31d  s6-linux-utils-2.0.2.0.tar.gz"
sha256sums="abb75049fd2f249694b36d58f377d6535e9111c05e1e65f4352cecb238c1cd78  s6-linux-utils-2.0.2.0.tar.gz"
sha512sums="98677739fc5d03e25d7f664e6e5051bdad4e7b5cb7c652933e285b599d85576933c1101ddc572f183a9d81cd8e66ef4dc03b68865a0a512a5dc540aa4559f040  s6-linux-utils-2.0.2.0.tar.gz"