aboutsummaryrefslogtreecommitdiffstats
path: root/testing/s6-networking/APKBUILD
blob: c8b55e9dbd2de0e80956b97735269daa49cf365b (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
# Contributor: John Regan <john@jrjrtech.com>
# Maintainer: John Regan <john@jrjrtech.com>
pkgname=s6-networking
pkgver=2.1.0.4
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
}

md5sums="07a19e69db4978ef5c03cfd7daf3a827  s6-networking-2.1.0.4.tar.gz"
sha256sums="0fb4bd02371077c6bed2878d22c9acbfc01834da6752277fbb92d8312076640a  s6-networking-2.1.0.4.tar.gz"
sha512sums="6c3fb2ad310c21d92de1b168ef35d61f0553a25c13b75d1fc862fb725afb6ea35f8c4d4a91ba84fac062fbae2e54801f91a0a0c078818cd3a96dcd44b586df3e  s6-networking-2.1.0.4.tar.gz"