aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libasr
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-05-27 14:16:00 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-05-27 14:16:00 +0000
commit1e30d81c26ead4896216b9b04401adcc952bd42d (patch)
tree22d3519d8a6a10d96427aa442664c5010ebe4781 /testing/libasr
parentd5ff2af37649b9d74ca497a8a38aa48db83249b2 (diff)
downloadaports-1e30d81c26ead4896216b9b04401adcc952bd42d.tar.bz2
aports-1e30d81c26ead4896216b9b04401adcc952bd42d.tar.xz
testing/libasr: new aport
Diffstat (limited to 'testing/libasr')
-rw-r--r--testing/libasr/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/libasr/APKBUILD b/testing/libasr/APKBUILD
new file mode 100644
index 0000000000..3c366724bd
--- /dev/null
+++ b/testing/libasr/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=libasr
+pkgver=1.0.1
+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="ca46c5f24846598f9fd2322c265f5313 libasr-1.0.1.tar.gz"
+sha256sums="262471e312d623e4951a133ed4c16a74d57f0a02554ca4ed7b4b575456620182 libasr-1.0.1.tar.gz"
+sha512sums="94afed300327622e597d3678525b0d30a0a4a812966040a92a7b7b73beebb2209c7e6931cea07841aba745e14cda6df0dea9a7e098a94121768850e1d0e8d5ef libasr-1.0.1.tar.gz"