[arch-commits] Commit in lib32-zeromq/trunk (PKGBUILD lib32-zeromq-openpgm.patch)
Maxime Gauduin
alucryd at archlinux.org
Thu May 6 14:46:16 UTC 2021
Date: Thursday, May 6, 2021 @ 14:46:15
Author: alucryd
Revision: 928472
upgpkg: lib32-zeromq 4.3.4-1
Added:
lib32-zeromq/trunk/lib32-zeromq-openpgm.patch
Modified:
lib32-zeromq/trunk/PKGBUILD
----------------------------+
PKGBUILD | 56 +++++++++++++++++++++++--------------------
lib32-zeromq-openpgm.patch | 23 +++++++++++++++++
2 files changed, 53 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-06 14:27:21 UTC (rev 928471)
+++ PKGBUILD 2021-05-06 14:46:15 UTC (rev 928472)
@@ -3,9 +3,8 @@
# Contributor: Kyle Keen <keenerd at gmail.com>
pkgname=lib32-zeromq
-pkgver=4.3.3
-_cppver=4.6.0
-pkgrel=2
+pkgver=4.3.4
+pkgrel=1
pkgdesc='Fast messaging system built on sockets'
arch=(x86_64)
url=https://www.zeromq.org
@@ -18,43 +17,48 @@
zeromq
)
makedepends=(
- asciidoc
+ cmake
git
+ ninja
xmlto
)
-source=("https://github.com/zeromq/libzmq/releases/download/v$pkgver/zeromq-$pkgver.tar.gz"
- "zmq.hpp.$_cppver.tgz::https://github.com/zeromq/cppzmq/archive/v$_cppver.tar.gz")
-sha256sums=('9d9285db37ae942ed0780c016da87060497877af45094ff9e1a1ca736e3875a2'
- 'e9203391a0b913576153a2ad22a2dc1479b1ec325beb6c46a3237c669aef5a52')
+_tag=7824f6762fa526c5bfb0baa23a6839ecf5988e91
+source=(
+ git+https://github.com/zeromq/libzmq.git?signed#tag=${_tag}
+ lib32-zeromq-openpgm.patch
+)
+validpgpkeys=(A9EA9081724FFAE0484C35A1A81CEA22BC8C7E2E) # Luca Boccassi <luca.boccassi at gmail.com>
+sha256sums=('SKIP'
+ '59d3b09f15096fee4effb1916d0788243f41f6a0aa166ae53a8d876abc63fc48')
prepare() {
- cd zeromq-$pkgver
- # Needed for new libsodium
- sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' configure
+ cd libzmq
+ patch -Np1 -i ../lib32-zeromq-openpgm.patch
+}
- sed -i 's/openpgm-5.1/openpgm-5.3/' configure configure.ac
- sed -i 's/CXXFLAGS="-Wno-long-long/CXXFLAGS="-Wno-unused-function -Wno-long-long/' configure
+pkgver() {
+ cd libzmq
+ git describe --tags | sed 's/^v//'
}
build() {
- cd zeromq-$pkgver
-
export CC='gcc -m32'
export CXX='g++ -m32'
- export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
-
- ./configure \
- prefix=/usr \
- --libdir=/usr/lib32 \
- --disable-static \
- --with-libsodium \
- --with-pgm \
- --without-documentation
- make -Wno-unused-function -Wnoerror=unused-function
+ export CXXFLAGS+=' -Wno-unused-function'
+ export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
+ cmake -S libzmq -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib32 \
+ -DWITH_DOC=OFF \
+ -DWITH_LIBSODIUM=ON \
+ -DWITH_OPENPGM=ON \
+ -DWITH_TLS=OFF \
+ -Wno-dev
+ cmake --build build
}
package() {
- make DESTDIR="${pkgdir}" -C zeromq-$pkgver install
+ DESTDIR="${pkgdir}" cmake --install build
rm -rf "${pkgdir}"/usr/{bin,include,share}
}
Added: lib32-zeromq-openpgm.patch
===================================================================
--- lib32-zeromq-openpgm.patch (rev 0)
+++ lib32-zeromq-openpgm.patch 2021-05-06 14:46:15 UTC (rev 928472)
@@ -0,0 +1,23 @@
+diff '--color=auto' -rupN libzmq.orig/CMakeLists.txt libzmq/CMakeLists.txt
+--- libzmq.orig/CMakeLists.txt 2021-05-06 16:35:11.594304700 +0200
++++ libzmq/CMakeLists.txt 2021-05-06 16:42:05.666080883 +0200
+@@ -793,7 +793,7 @@ else()
+ # message(FATAL_ERROR "WITH_OPENPGM not implemented")
+
+ if(NOT OPENPGM_PKGCONFIG_NAME)
+- set(OPENPGM_PKGCONFIG_NAME "openpgm-5.2")
++ set(OPENPGM_PKGCONFIG_NAME "openpgm-5.3")
+ endif()
+
+ set(OPENPGM_PKGCONFIG_NAME
+@@ -1447,6 +1447,10 @@ if(BUILD_SHARED)
+ endif()
+ endif()
+
++ if(OPENPGM_FOUND)
++ target_link_libraries(libzmq ${OPENPGM_LIBRARIES})
++ endif()
++
+ if(HAVE_WS2_32)
+ target_link_libraries(libzmq ws2_32)
+ elseif(HAVE_WS2)
More information about the arch-commits
mailing list