aboutsummaryrefslogtreecommitdiffstats
path: root/main/libasr/APKBUILD
blob: 178f25e688e5e2cedfd8b4ebb55a263b722bdf7f (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
50
51
52
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libasr
pkgver=1.0.2
pkgrel=2
pkgdesc="libasr is a free, simple and portable asynchronous resolver library"
url="http://www.opensmtpd.org"
arch="all"
license="ISC"
depends=""
depends_dev=""
makedepends="mdocml bison openssl-dev automake autoconf libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/OpenSMTPD/libasr/archive/libasr-$pkgver.zip
	00-use-openbsd-res_randomid.patch"

_builddir=${srcdir}/${pkgname}-${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
        ./bootstrap
}

build() {
	cd "$_builddir"
        ./configure --build=$CBUILD \
		--host=$CHOST \
		--with-pie \
		--with-Werror \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--with-mantype=man || return 1
        make || return 1
}

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

md5sums="1919b1b1c5a08821901fd2c0a6d488a7  libasr-1.0.2.zip
2d32d1f831dc000137d5fcaf9db3e33f  00-use-openbsd-res_randomid.patch"
sha256sums="8e1ed7420446219d105ac0c384cf69160791335dc69bf1ca0581279472241ca7  libasr-1.0.2.zip
19ad3fe95f881b60c317ec63777c1b4843dbaea39d28343eb67c5bdbabe4e5f9  00-use-openbsd-res_randomid.patch"
sha512sums="2b9185c9bd953d093be397554bc024ddab03003e0c56f19018a8bc22d48434fe3364274fef631cd5e2984321368baff4cd4a504d61b71c60ceffd9e5cc3c8124  libasr-1.0.2.zip
2dd30b5147562f209b23b4a939be787304125cf559bccd937781149cc7cb487c4cf6ec358fba32a33407c7ca3e44545ebbe04ddc2a14504835409f23bdef9689  00-use-openbsd-res_randomid.patch"