aboutsummaryrefslogtreecommitdiffstats
path: root/testing/s6-networking/APKBUILD
blob: 5fc3b1710b4c100cf22cc7368c061d5a9d59c618 (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.1
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="e3710e78febaac493ad97760970f95d6  s6-networking-2.1.0.1.tar.gz"
sha256sums="34fc27d30e1f917be99d92b2a52c464d2948479ea679a737e3d00faaf46ceb0e  s6-networking-2.1.0.1.tar.gz"
sha512sums="ac3aca6e7bfc1ffbda2fdb1cef55f06fcf776beb68288958da5a8acd2923cfe9afbe1540bfa94610be31c8205d77b0d6209668eb14d710b5f3d9073471fe746c  s6-networking-2.1.0.1.tar.gz"