blob: 3c770da28baee28ad06ffafd9c64c8f083fcb961 (
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
53
|
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libasr
pkgver=1.0.2
pkgrel=9
pkgdesc="libasr is a free, simple and portable asynchronous resolver library"
url="https://www.opensmtpd.org"
arch="all"
license="ISC"
options="!check"
makedepends="mdocml bison openssl-dev automake autoconf libtool libbsd-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/OpenSMTPD/libasr/archive/libasr-$pkgver.tar.gz
0001-Fix-NETDB_SUCCESS-value.patch
0002-Replace-missing-res_randomid-with-the-more-secure-ar.patch
0003-no-need-for-openssl-in-libasr.patch
0004-mod_automake_bootstrap_version.patch
"
builddir=${srcdir}/${pkgname}-${pkgname}-${pkgver}
prepare() {
default_prepare || return 1
cd "$builddir"
./bootstrap || return 1
}
build() {
cd "$builddir"
# XXX: Hotfix, see: https://github.com/OpenSMTPD/libasr/pull/18
CFLAGS="-Wno-error=maybe-uninitialized" \
./configure --build=$CBUILD \
--host=$CHOST \
--with-pie \
--with-Werror \
--prefix=/usr \
--mandir=/usr/share/man \
--with-mantype=man \
--without-Werror
make
}
package() {
cd "$builddir"
make DESTDIR=${pkgdir} install
}
sha512sums="d70d5fb5728678074f4fd3d0f925b13a8a5ac9fec7a38277f2ed0e6b3f3fe2591845d035f43ece1ee16f1fdfd7d7443140ca36f171f94f310ed821b88b82b924 libasr-1.0.2.tar.gz
aebd80ae1fd33604f547833d4244161cc8551404c61e666967062e484a30d88f597e71c9f9956a3604bf02e625d8aabd9b4669d3efad1a2a15efb2f8acd8ac03 0001-Fix-NETDB_SUCCESS-value.patch
1f189036d9f2cc0b7442412cf6349f5a1e567d23a05641c397ee4f5c6ac13a690afd4f5586cb645291682408664dc7582a9ca7552f7ddb6c1aca16bf49c313ef 0002-Replace-missing-res_randomid-with-the-more-secure-ar.patch
32ffc6e64d9eeb7aa37a2f4b4633ac462508f2ee7a9152b6c6b87aeebdcc89e809e839d4cc66ed49486b98d34706ff8cd86d8466663bd8712dacd99cfec64e03 0003-no-need-for-openssl-in-libasr.patch
1dca9d2f46c0d34af636469fcd3a8e6febadbbd8a39ba496562cdf17f444ea00c8f247ae6e37dda87bb841b7ecf771164968bdd78a0bd4c69b00e060b4426bb3 0004-mod_automake_bootstrap_version.patch"
|