main/zeromq: upgrade to 4.2.2

- add check()
- cleanups
This commit is contained in:
Valery Kartel 2017-04-12 15:10:29 +03:00 committed by Leonardo Arena
parent b4b148c538
commit 533741a00e
2 changed files with 28 additions and 24 deletions

View File

@ -1,25 +1,20 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org> # Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zeromq pkgname=zeromq
pkgver=4.1.5 pkgver=4.2.2
pkgrel=1 pkgrel=0
pkgdesc="The ZeroMQ messaging library and tools" pkgdesc="The ZeroMQ messaging library and tools"
url="http://www.zeromq.org/" url="http://www.zeromq.org/"
arch="all" arch="all"
license="LGPLv3+ with exceptions" license="LGPLv3+ with exceptions"
depends="" makedepends="util-linux-dev libsodium-dev libunwind-dev
makedepends="util-linux-dev libsodium-dev perl python2 asciidoc xmlto perl python2 asciidoc xmlto autoconf automake
autoconf automake" "
subpackages="$pkgname-dev $pkgname-doc libzmq" subpackages="$pkgname-dev $pkgname-doc libzmq:libs"
source="https://github.com/zeromq/zeromq4-1/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" source="https://github.com/zeromq/libzmq/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
test-driver.patch
builddir="$srcdir"/$pkgname-$pkgver "
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
update_config_sub || return 1
default_prepare || return 1
}
build() { build() {
cd "$builddir" cd "$builddir"
@ -35,17 +30,15 @@ build() {
make || return 1 make || return 1
} }
check() {
cd "$builddir"
make check
}
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
} }
libzmq() { sha512sums="d78813a61ce3311a1f8c230f7da0f5aedc97ef4b792afb6d398c5710da239348c0c7a67bdfeb38a7ab0282af498f1ed173649aff4add1bc35f0ef1b66f965443 zeromq-4.2.2.tar.gz
pkgdesc="The ZeroMQ messaging library" 64e4ae2c89469359480743beeb4f1e08976a4c52dbfd2dd33020463df78e927993319e456299682901001e0832ebed85291eea0decc1d27a58de78a6c891e660 test-driver.patch"
install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libzmq.so.* "$subpkgdir"/usr/lib/
}
md5sums="e7adf4b7dbae09b28cfd10d26cd67fac zeromq-4.1.5.tar.gz"
sha256sums="04aac57f081ffa3a2ee5ed04887be9e205df3a7ddade0027460b8042432bdbcf zeromq-4.1.5.tar.gz"
sha512sums="b5098e7ea7fe7fdae75846a804d175bcb414a4f8212a15b9c1c2e52f3541aa603e773061db7ea92075e1f9f9be40572aba1c133b233a8ac2458bccf8427e407e zeromq-4.1.5.tar.gz"

View File

@ -0,0 +1,11 @@
--- a/config/test-driver
+++ b/config/test-driver
@@ -104,7 +104,7 @@
trap "st=143; $do_exit" 15
# Test script is run here.
-"$@" >$log_file 2>&1
+: "$@" >$log_file 2>&1
estatus=$?
if test $enable_hard_errors = no && test $estatus -eq 99; then
estatus=1