blob: d77ce07112a5848b02319613daaa533336a4e81b (
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
|
# Contributor: ScrumpyJack <scrumpyjack@me.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libasr
pkgver=1.0.2
pkgrel=0
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"
source="https://www.opensmtpd.org/archives/${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 \
--with-pie \
--prefix=/usr \
--mandir=/usr/share/man \
--with-mantype=man || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR=${pkgdir} install || return 1
find "$pkgdir" -name '*.la' -delete || return 1
}
md5sums="2a2832e8c25683bd17f4ce8b37ba940a libasr-1.0.2.tar.gz"
sha256sums="a6f5d1c6306938156da3427525572b9b16c1e6be6c69845d390bb63f41a58b34 libasr-1.0.2.tar.gz"
sha512sums="a4825a30130f70a452044c484871ac37459e1c1e6659c4c38dead7d3abbdaecb3517b7accb46586537975fee033857566fd279ecf97ae87dc80bb6bcdd467d3e libasr-1.0.2.tar.gz"
|