diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2014-12-16 10:09:08 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2014-12-16 10:10:01 +0000 |
commit | 1568fac0eb51fca62637eb4221da1ab402b2f066 (patch) | |
tree | 9868cd948fcd9264af35a0b56302d9f6452536d6 /testing | |
parent | a20c82d05121220dd881839f1ab44cebacaa4d38 (diff) | |
download | aports-1568fac0eb51fca62637eb4221da1ab402b2f066.tar.bz2 aports-1568fac0eb51fca62637eb4221da1ab402b2f066.tar.xz |
testing/nanomsg: new aport. Feature #3632
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nanomsg/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/nanomsg/APKBUILD b/testing/nanomsg/APKBUILD new file mode 100644 index 000000000..af1012552 --- /dev/null +++ b/testing/nanomsg/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=nanomsg +pkgver=0.5 +_pkgver=$pkgver-beta +pkgrel=0 +pkgdesc="A socket library that provides several common communication patterns" +url="http://nanomsg.org/" +arch="all" +license="MIT" +depends="" +depends_dev="asciidoc xmlto" +makedepends="$depends_dev" +install="" +options="libtool" +subpackages="$pkgname-dev $pkgname-doc" +source="http://download.nanomsg.org/nanomsg-$_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 --prefix="/usr" \ + --enable-doc="yes" +} + +package() { + cd "$_builddir" + make DESTDIR="${pkgdir}" install + install -Dm644 "${srcdir}/nanomsg-${pkgver}-beta/COPYING" "${pkgdir}/usr/share/licenses/$pkgname/COPYING" + rm "$pkgdir"/usr/lib/*.la || return 1 +} + +md5sums="65a79eabfc33e7a55e2293e12c367f73 nanomsg-0.5-beta.tar.gz" +sha256sums="13bff7ae8f31957722ee62d50504ce1a0c590da908f8566f997e3e521abb089f nanomsg-0.5-beta.tar.gz" +sha512sums="64bb658d80e94ec43e77b7a7c53a29e9b9cd02a7539e9c108b0bdfad8179af4202e11dcfdcb8400e3334931f61e59066fafe06c9df3bb4628dde6a047139ffe5 nanomsg-0.5-beta.tar.gz" |