[arch-commits] Commit in zeromq/repos (2 files)

Frederik Schwan freswa at archlinux.org
Wed Sep 16 21:41:13 UTC 2020


    Date: Wednesday, September 16, 2020 @ 21:41:12
  Author: freswa
Revision: 708377

archrelease: copy trunk to community-testing-x86_64

Added:
  zeromq/repos/community-testing-x86_64/
  zeromq/repos/community-testing-x86_64/PKGBUILD
    (from rev 708376, zeromq/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: zeromq/repos/community-testing-x86_64/PKGBUILD (from rev 708376, zeromq/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-09-16 21:41:12 UTC (rev 708377)
@@ -0,0 +1,57 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+pkgname=zeromq
+pkgver=4.3.3
+_cppver=4.6.0
+pkgrel=1
+pkgdesc="Fast messaging system built on sockets. C and C++ bindings. aka 0MQ, ZMQ."
+arch=('x86_64')
+url="http://www.zeromq.org"
+license=('LGPL')
+depends=('gcc-libs' 'util-linux' 'libsodium' 'libpgm')
+makedepends=('asciidoc' 'xmlto')
+options=('staticlibs')
+# "http://download.zeromq.org/$pkgname-$pkgver.tar.gz"
+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")
+        #"zmq.hpp.$pkgver::https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp")
+sha256sums=('9d9285db37ae942ed0780c016da87060497877af45094ff9e1a1ca736e3875a2'
+            'e9203391a0b913576153a2ad22a2dc1479b1ec325beb6c46a3237c669aef5a52')
+
+prepare() {
+  cd "$srcdir/$pkgname-$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 "$srcdir/$pkgname-$pkgver"
+  ./configure prefix=/usr --with-pgm --with-libsodium \
+    --with-documentation --enable-static
+  make -Wno-unused-function -Wnoerror=unused-function
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # this will fail if zmq.hpp is out of date
+  LANG=C gcc -c ../cppzmq-$_cppver/zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o
+  rm -f test.o
+
+  if [[ $CARCH == 'i686' ]]; then
+    return 0
+  fi
+  make -k check
+}
+
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  cd "$srcdir/cppzmq-$_cppver"
+  install -Dm644 zmq.hpp "$pkgdir/usr/include/zmq.hpp"
+  install -Dm644 zmq_addon.hpp "$pkgdir/usr/include/zmq_addon.hpp"
+}
+



More information about the arch-commits mailing list