Commit fd5c3e8f authored by Tuan Hoang's avatar Tuan Hoang Committed by Natanael Copa

main/czmq: backport from master to fix tests on s390x

zproc/zsp tests seem to be fixed in master

zdigest and SHA1 functions fail when building with CMake
Use normal/official build scripts instead
parent 4cb8975d
......@@ -2,31 +2,35 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=czmq
pkgver=4.1.1
pkgrel=0
pkgrel=1
pkgdesc="High-level C binding for ZeroMQ"
url="http://czmq.zeromq.org/"
arch="all !s390x" # zproxy test timeouts on s390x
arch="all"
license="MPL-2.0"
depends_dev="util-linux-dev zeromq-dev"
makedepends="$depends_dev cmake"
makedepends="$depends_dev libtool autoconf automake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/zeromq/$pkgname/archive/v$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/zeromq/$pkgname/archive/v$pkgver.tar.gz
zproc_zsp.patch
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
./autogen.sh
}
build() {
cd "$builddir"
# Note: One test segfaults when built with MinSizeRel (-Os).
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=ON
make
./configure \
--prefix=/usr \
--with-libsystemd=no
make -j1
}
check() {
cd "$builddir"
make test
make -j1 check
}
package() {
......@@ -34,4 +38,5 @@ package() {
make install DESTDIR="$pkgdir"
}
sha512sums="c36d509e154a2142154f339294375bab0f6a2752f025a4489067bbddb22c4ef8f8e501797e755ac3779aa5c1c19397d32f7195ba80ae6b81e349f22c7634fb91 czmq-4.1.1.tar.gz"
sha512sums="c36d509e154a2142154f339294375bab0f6a2752f025a4489067bbddb22c4ef8f8e501797e755ac3779aa5c1c19397d32f7195ba80ae6b81e349f22c7634fb91 czmq-4.1.1.tar.gz
647c4915220f8e668750495b7511b60e8cf67b677de920176905797d76ed6fad7b63c5cc930a6635f77fb9c0c28427f7c6662df5de18e91412c3c76dde43e6a9 zproc_zsp.patch"
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment