aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 20:48:53 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-14 00:54:41 +0000
commitd15f38cbe02f69f49f94c3e771332a5a0acbfc0c (patch)
tree8463f49e1b53b35cb86a59ea38d943e39fcf94ec
parent1d1b33c3195c6fbdf5d85aa38e3897184526921e (diff)
downloadaports-d15f38cbe02f69f49f94c3e771332a5a0acbfc0c.tar.gz
aports-d15f38cbe02f69f49f94c3e771332a5a0acbfc0c.tar.bz2
aports-d15f38cbe02f69f49f94c3e771332a5a0acbfc0c.tar.xz
main/czmq: fix location of cmake modules, add -static subpackage
-rw-r--r--main/czmq/APKBUILD30
1 files changed, 17 insertions, 13 deletions
diff --git a/main/czmq/APKBUILD b/main/czmq/APKBUILD
index 13f5b42dfb..3c62aa2f76 100644
--- a/main/czmq/APKBUILD
+++ b/main/czmq/APKBUILD
@@ -2,37 +2,41 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=czmq
pkgver=4.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="High-level C binding for ZeroMQ"
url="http://czmq.zeromq.org/"
arch="all !s390x" # zproxy test timeouts on s390x
license="MPL-2.0"
-depends_dev="util-linux-dev zeromq-dev"
-makedepends="$depends_dev cmake"
-subpackages="$pkgname-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/zeromq/$pkgname/archive/v$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
+makedepends="util-linux-dev zeromq-dev cmake"
+subpackages="$pkgname-static $pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/zeromq/czmq/archive/v$pkgver.tar.gz"
case "$CARCH" in
# crypto tests assume MIPS is little-endian
-mips*) options="!check";;
+ mips*) options="!check";;
esac
build() {
- # Note: One test segfaults when built with MinSizeRel (-Os).
- cmake \
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_VERBOSE_MAKEFILE=ON
- make
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ $CMAKE_CROSSOPTS .
+ make -C build
}
check() {
- make test
+ make -C build test
}
package() {
- make install DESTDIR="$pkgdir"
+ make -C build DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/usr/lib
+ mv "$pkgdir"/usr/share/cmake "$pkgdir"/usr/lib
}
sha512sums="d6b6356c07095579e6780386e6c5ead6f87c1f3a80d15afbfaea24a9c108ef13ab750e7dcffbcc4d8528fb5b14b0b28f08008d513b2cf85f2df10b7cf5903212 czmq-4.2.0.tar.gz"