aboutsummaryrefslogtreecommitdiffstats
path: root/main/libasyncns/APKBUILD
blob: c11554d8894d537e7cbee5e1a2db153c5f50bf3e (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=libasyncns
pkgver=0.8
pkgrel=0
pkgdesc="Asynchronous Name Service Library"
url="http://0pointer.de/lennart/projects/libasyncns/"
arch="all"
license="LGPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://dev.alpinelinux.org/archive/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--disable-static \
		--prefix=/usr \
		|| return 1
	make || return 1
}

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

md5sums="1f553d6ce1ad255bc83b3d8e9384f515  libasyncns-0.8.tar.gz"