aboutsummaryrefslogtreecommitdiffstats
path: root/testing/s6-dns/APKBUILD
blob: 92f05f0ed288d9babf51f5dade68259f80b77665 (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.7
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="55ea7f361af4d1142d5b553afdbb5c36  s6-dns-2.0.0.7.tar.gz"
sha256sums="d37f05810d35ee4f98afe35467c856de10a5878e8d2ad19ccbc6599a58c6442a  s6-dns-2.0.0.7.tar.gz"
sha512sums="9e7faa2c364c78cc1c44152425381697f7eb26dab8e50cd6c73d30fa687a1565683d253c89208065474ed6873d738f140967ae430722332f060dfc6db08385a9  s6-dns-2.0.0.7.tar.gz"