[arch-commits] Commit in zeromq/trunk (PKGBUILD)

Kyle Keen kkeen at archlinux.org
Wed Jan 16 20:57:21 UTC 2019


    Date: Wednesday, January 16, 2019 @ 20:57:20
  Author: kkeen
Revision: 423707

upgpkg: zeromq 4.3.1-1

Modified:
  zeromq/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-16 19:28:48 UTC (rev 423706)
+++ PKGBUILD	2019-01-16 20:57:20 UTC (rev 423707)
@@ -1,6 +1,7 @@
 # Maintainer: Kyle Keen <keenerd at gmail.com>
 pkgname=zeromq
-pkgver=4.3.0
+pkgver=4.3.1
+_cppver=4.3.0
 pkgrel=1
 pkgdesc="Fast messaging system built on sockets.  C and C++ bindings.  aka 0MQ, ZMQ."
 arch=('x86_64')
@@ -11,14 +12,14 @@
 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=('8e9c3af6dc5a8540b356697081303be392ade3f014615028b3c896d0148397fd'
-            '02b73219656df3ffe3b231c7d0326e754a738ef2a83c8e94cd1e47d22cdd9535')
+        "zmq.hpp.$pkgver.tgz::https://github.com/zeromq/cppzmq/archive/v$_cppver.tar.gz")
+        #"zmq.hpp.$pkgver::https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp")
+sha256sums=('bcbabe1e2c7d0eec4ed612e10b94b112dd5f06fcefa994a0c79a45d835cd21eb'
+            '27d1f56406ba94ee779e639203218820975cf68174f92fbeae0f645df0fcada4')
 
 prepare() {
   # Needed for new libsodium
   sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' $pkgname-$pkgver/configure
-  cp zmq.hpp.$pkgver zmq.hpp
 }
 
 build() {
@@ -32,7 +33,7 @@
   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
+  LANG=C gcc -c ../cppzmq-$_cppver/zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o
   rm -f test.o
 
   if [[ $CARCH == 'i686' ]]; then
@@ -45,6 +46,7 @@
 package() {
   cd "$srcdir/$pkgname-$pkgver"
   make DESTDIR="$pkgdir" install
-  install -Dm644 "$srcdir/zmq.hpp" "$pkgdir/usr/include/zmq.hpp"
+  cd "$srcdir/cppzmq-$_cppver"
+  install -Dm644 zmq.hpp "$pkgdir/usr/include/zmq.hpp"
 }
 


More information about the arch-commits mailing list