# Contributor: ScrumpyJack # Maintainer: Francesco Colista 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"