[arch-commits] Commit in zeromq/repos (4 files)
Kyle Keen
kkeen at archlinux.org
Sun Dec 4 07:43:49 UTC 2016
Date: Sunday, December 4, 2016 @ 07:43:48
Author: kkeen
Revision: 197856
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
zeromq/repos/community-testing-i686/
zeromq/repos/community-testing-i686/PKGBUILD
(from rev 197855, zeromq/trunk/PKGBUILD)
zeromq/repos/community-testing-x86_64/
zeromq/repos/community-testing-x86_64/PKGBUILD
(from rev 197855, zeromq/trunk/PKGBUILD)
-----------------------------------+
community-testing-i686/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++
community-testing-x86_64/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++
2 files changed, 106 insertions(+)
Copied: zeromq/repos/community-testing-i686/PKGBUILD (from rev 197855, zeromq/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-12-04 07:43:48 UTC (rev 197856)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+pkgname=zeromq
+pkgver=4.2.0
+pkgrel=1
+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"
+ 'https://raw.githubusercontent.com/zeromq/cppzmq/8b52a6f/zmq.hpp')
+md5sums=('1fb2595d2a905a9e820c976a1d8348bc'
+ 'c732ee5409f8419323185d8aa44bc54c')
+
+prepare() {
+ # Needed for new libsodium
+ sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' $pkgname-$pkgver/configure
+}
+
+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-testing-x86_64/PKGBUILD (from rev 197855, zeromq/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2016-12-04 07:43:48 UTC (rev 197856)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+pkgname=zeromq
+pkgver=4.2.0
+pkgrel=1
+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"
+ 'https://raw.githubusercontent.com/zeromq/cppzmq/8b52a6f/zmq.hpp')
+md5sums=('1fb2595d2a905a9e820c976a1d8348bc'
+ 'c732ee5409f8419323185d8aa44bc54c')
+
+prepare() {
+ # Needed for new libsodium
+ sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' $pkgname-$pkgver/configure
+}
+
+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