aboutsummaryrefslogtreecommitdiffstats
path: root/main/libasr/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-11 10:03:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-11 10:09:44 +0000
commit537910b75b561aa1d4cf70e9b22dbf98925f602d (patch)
tree21d39363c5c4303a647f16686c21711765abc8c9 /main/libasr/APKBUILD
parent444347d53d2e46d3981ad9fd8cf41789e40abcda (diff)
downloadaports-537910b75b561aa1d4cf70e9b22dbf98925f602d.tar.bz2
aports-537910b75b561aa1d4cf70e9b22dbf98925f602d.tar.xz
main/libasr: move from testing
needed by opensmtpd
Diffstat (limited to 'main/libasr/APKBUILD')
-rw-r--r--main/libasr/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/main/libasr/APKBUILD b/main/libasr/APKBUILD
new file mode 100644
index 0000000000..178f25e688
--- /dev/null
+++ b/main/libasr/APKBUILD
@@ -0,0 +1,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"