[arch-commits] Commit in lib32-zeromq/repos/multilib-x86_64 (3 files)
Maxime Gauduin
alucryd at archlinux.org
Thu May 6 14:46:21 UTC 2021
Date: Thursday, May 6, 2021 @ 14:46:21
Author: alucryd
Revision: 928473
archrelease: copy trunk to multilib-x86_64
Added:
lib32-zeromq/repos/multilib-x86_64/PKGBUILD
(from rev 928472, lib32-zeromq/trunk/PKGBUILD)
lib32-zeromq/repos/multilib-x86_64/lib32-zeromq-openpgm.patch
(from rev 928472, lib32-zeromq/trunk/lib32-zeromq-openpgm.patch)
Deleted:
lib32-zeromq/repos/multilib-x86_64/PKGBUILD
----------------------------+
PKGBUILD | 126 ++++++++++++++++++++++---------------------
lib32-zeromq-openpgm.patch | 23 +++++++
2 files changed, 88 insertions(+), 61 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-06 14:46:15 UTC (rev 928472)
+++ PKGBUILD 2021-05-06 14:46:21 UTC (rev 928473)
@@ -1,61 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Colm Hickey <colmohici at gmail.com>
-# Contributor: Kyle Keen <keenerd at gmail.com>
-
-pkgname=lib32-zeromq
-pkgver=4.3.3
-_cppver=4.6.0
-pkgrel=2
-pkgdesc='Fast messaging system built on sockets'
-arch=(x86_64)
-url=https://www.zeromq.org
-license=(LGPL)
-depends=(
- lib32-gcc-libs
- lib32-glibc
- lib32-libpgm
- lib32-libsodium
- zeromq
-)
-makedepends=(
- asciidoc
- git
- 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')
-
-prepare() {
- cd zeromq-$pkgver
- # Needed for new libsodium
- sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' configure
-
- 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
-}
-
-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
-}
-
-package() {
- make DESTDIR="${pkgdir}" -C zeromq-$pkgver install
- rm -rf "${pkgdir}"/usr/{bin,include,share}
-}
-
-# vim: ts=2 sw=2 et:
Copied: lib32-zeromq/repos/multilib-x86_64/PKGBUILD (from rev 928472, lib32-zeromq/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-05-06 14:46:21 UTC (rev 928473)
@@ -0,0 +1,65 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Colm Hickey <colmohici at gmail.com>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=lib32-zeromq
+pkgver=4.3.4
+pkgrel=1
+pkgdesc='Fast messaging system built on sockets'
+arch=(x86_64)
+url=https://www.zeromq.org
+license=(LGPL)
+depends=(
+ lib32-gcc-libs
+ lib32-glibc
+ lib32-libpgm
+ lib32-libsodium
+ zeromq
+)
+makedepends=(
+ cmake
+ git
+ ninja
+ xmlto
+)
+_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 libzmq
+ patch -Np1 -i ../lib32-zeromq-openpgm.patch
+}
+
+pkgver() {
+ cd libzmq
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ export CC='gcc -m32'
+ export CXX='g++ -m32'
+ 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() {
+ DESTDIR="${pkgdir}" cmake --install build
+ rm -rf "${pkgdir}"/usr/{bin,include,share}
+}
+
+# vim: ts=2 sw=2 et:
Copied: lib32-zeromq/repos/multilib-x86_64/lib32-zeromq-openpgm.patch (from rev 928472, lib32-zeromq/trunk/lib32-zeromq-openpgm.patch)
===================================================================
--- lib32-zeromq-openpgm.patch (rev 0)
+++ lib32-zeromq-openpgm.patch 2021-05-06 14:46:21 UTC (rev 928473)
@@ -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