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

Kyle Keen kkeen at archlinux.org
Sat Oct 7 10:20:11 UTC 2017


    Date: Saturday, October 7, 2017 @ 10:20:10
  Author: kkeen
Revision: 262063

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  zeromq/repos/community-staging-i686/
  zeromq/repos/community-staging-i686/PKGBUILD
    (from rev 262062, zeromq/trunk/PKGBUILD)
  zeromq/repos/community-staging-x86_64/
  zeromq/repos/community-staging-x86_64/PKGBUILD
    (from rev 262062, zeromq/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   54 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+)

Copied: zeromq/repos/community-staging-i686/PKGBUILD (from rev 262062, zeromq/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-10-07 10:20:10 UTC (rev 262063)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+pkgname=zeromq
+pkgver=4.2.2
+pkgrel=2
+pkgdesc="Fast messaging system built on sockets.  C and C++ bindings.  aka 0MQ, ZMQ."
+arch=('i686' '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.$pkgver::https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp")
+sha256sums=('5b23f4ca9ef545d5bd3af55d305765e3ee06b986263b31967435d285a3e6df6b'
+            '02b73219656df3ffe3b231c7d0326e754a738ef2a83c8e94cd1e47d22cdd9535')
+
+prepare() {
+  # Needed for new libsodium
+  sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' $pkgname-$pkgver/configure
+  cp zmq.hpp.$pkgver zmq.hpp
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure prefix=/usr --with-pgm --with-libsodium \
+    --with-documentation --enable-static
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # this will fail if zmq.hpp is out of date
+  LANG=C gcc -c ../zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o
+  rm -f test.o
+
+  # 10/63 tests fail on the build server
+  # 100% pass on my local box?
+  return 0
+  if [[ $CARCH == 'i686' ]]; then
+    return 0
+  fi
+  make -k check
+}
+
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -Dm644 "$srcdir/zmq.hpp" "$pkgdir/usr/include/zmq.hpp"
+}
+

Copied: zeromq/repos/community-staging-x86_64/PKGBUILD (from rev 262062, zeromq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-10-07 10:20:10 UTC (rev 262063)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+pkgname=zeromq
+pkgver=4.2.2
+pkgrel=2
+pkgdesc="Fast messaging system built on sockets.  C and C++ bindings.  aka 0MQ, ZMQ."
+arch=('i686' '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.$pkgver::https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp")
+sha256sums=('5b23f4ca9ef545d5bd3af55d305765e3ee06b986263b31967435d285a3e6df6b'
+            '02b73219656df3ffe3b231c7d0326e754a738ef2a83c8e94cd1e47d22cdd9535')
+
+prepare() {
+  # Needed for new libsodium
+  sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' $pkgname-$pkgver/configure
+  cp zmq.hpp.$pkgver zmq.hpp
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure prefix=/usr --with-pgm --with-libsodium \
+    --with-documentation --enable-static
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # this will fail if zmq.hpp is out of date
+  LANG=C gcc -c ../zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o
+  rm -f test.o
+
+  # 10/63 tests fail on the build server
+  # 100% pass on my local box?
+  return 0
+  if [[ $CARCH == 'i686' ]]; then
+    return 0
+  fi
+  make -k check
+}
+
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -Dm644 "$srcdir/zmq.hpp" "$pkgdir/usr/include/zmq.hpp"
+}
+



More information about the arch-commits mailing list