aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nanomsg
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-06-23 10:27:07 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-06-23 10:27:22 +0000
commitf2ef8feff94db3621fbab72ddd24a54bd1fee24b (patch)
tree6d6920a94b8c1ef3c2bb30a35d9a94c4259c8855 /testing/nanomsg
parent77d13cc5fb790259fe0965e1fa2ae65b19acb158 (diff)
downloadaports-f2ef8feff94db3621fbab72ddd24a54bd1fee24b.tar.bz2
aports-f2ef8feff94db3621fbab72ddd24a54bd1fee24b.tar.xz
testing/nanomsg: upgrade to 1.0.0
Diffstat (limited to 'testing/nanomsg')
-rw-r--r--testing/nanomsg/APKBUILD41
1 files changed, 16 insertions, 25 deletions
diff --git a/testing/nanomsg/APKBUILD b/testing/nanomsg/APKBUILD
index 0df4a0c77e..0c7110eaa5 100644
--- a/testing/nanomsg/APKBUILD
+++ b/testing/nanomsg/APKBUILD
@@ -1,45 +1,36 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=nanomsg
-pkgver=0.8
-_pkgver=$pkgver-beta
+pkgver=1.0.0
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"
+depends_dev="asciidoctor xmlto"
+makedepends="$depends_dev cmake"
install=""
options="libtool"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
-source="https://github.com/nanomsg/nanomsg/releases/download/$_pkgver/$pkgname-$_pkgver.tar.gz"
+subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$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
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
- ./configure --prefix="/usr" \
- --enable-doc="yes"
+ cd "$builddir"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib .
+ make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="${pkgdir}" install
- install -Dm644 "${srcdir}/nanomsg-${pkgver}-beta/COPYING" "${pkgdir}/usr/share/licenses/$pkgname/COPYING"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
-md5sums="bfccbcd8c5ea8ccad4ef7ade558eebea nanomsg-0.8-beta.tar.gz"
-sha256sums="75ce0c68a50cc68070d899035d5bb1e2bd75a5e01cbdd86ba8af62a84df3a947 nanomsg-0.8-beta.tar.gz"
-sha512sums="457e99e2b2568370bf052a20e2abb38faad9afa9019d38aa35df6cf49d1d3f50e3a0b26a64089e823b7d907041e8069c99a06706678b070a26e0cbe2e26588d2 nanomsg-0.8-beta.tar.gz"
+md5sums="6f56ef28c93cee644e8c4aaaef7cfb55 nanomsg-1.0.0.tar.gz"
+sha256sums="24afdeb71b2e362e8a003a7ecc906e1b84fd9f56ce15ec567481d1bb33132cc7 nanomsg-1.0.0.tar.gz"
+sha512sums="06fc4eadac29439024bd24230c73f43ddc46e6b6848ad75952b67bf301066be5752a844173597c1b42e55c1ebb66a2d2cb7693e4cbfc07584b4398597cbc9200 nanomsg-1.0.0.tar.gz"