aboutsummaryrefslogtreecommitdiffstats
path: root/testing/s6-dns/APKBUILD
blob: a4da65b5f03f7b7b11bb6edef01df383b1ea818e (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-dns
pkgver=2.0.0.6
pkgrel=0
pkgdesc="skarnet.org's DNS client libraries and command-line DNS client utilities"
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
depends="skalibs"
depends_dev="skalibs-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 \
		--libdir=/usr/lib \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="675bd46a03411a623a0515d2269b804d  s6-dns-2.0.0.6.tar.gz"
sha256sums="dc63c9247bd18984de1197798533a01bc16e250fa8de11037481fd82831fede8  s6-dns-2.0.0.6.tar.gz"
sha512sums="41e7b2a2147dd56f884f3c48adb5910cb75bce0c443fa16b374389bd809bfb2fb29ebf30c3ca1e1366e77e61b303fa5f4df6fb2eebd0e560bc5901a05cbb8214  s6-dns-2.0.0.6.tar.gz"