aboutsummaryrefslogtreecommitdiffstats
path: root/testing/s6-networking/APKBUILD
blob: bd13fac501e7d900fa4d8c2759a495b9144411fa (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: John Regan <john@jrjrtech.com>
# Maintainer: John Regan <john@jrjrtech.com>
pkgname=s6-networking
pkgver=2.1.0.0
pkgrel=0
pkgdesc="skarnet.org's UCSPI Unix and TCP tools, access control tools, and network time management utilities."
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
depends="skalibs execline s6 s6-dns"
depends_dev="skalibs-dev execline-dev s6-dev s6-dns-dev"
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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="bd5654aa9b2c1a2449a454fc13a33f0c  s6-networking-2.1.0.0.tar.gz"
sha256sums="be75bddad884287c442900e10417c63980788ca1c5bae4188b64b375efba734d  s6-networking-2.1.0.0.tar.gz"
sha512sums="10cf5c1512d69cdb5d6750441e91e7cab9b696f53d51ba070dac82d127bd731fdfabdf1cbf610307f4808247e2a58bc388dbd95ef45db61d4b59d1cfb7be2b10  s6-networking-2.1.0.0.tar.gz"