Browse Source

initial transfer

master
artoo 4 years ago
parent
commit
2d85ec237a
  1. 51
      repos/community-x86_64/PKGBUILD
  2. 51
      trunk/PKGBUILD

51
repos/community-x86_64/PKGBUILD

@ -0,0 +1,51 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=zeromq
pkgver=4.3.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.$pkgver::https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp")
sha256sums=('8e9c3af6dc5a8540b356697081303be392ade3f014615028b3c896d0148397fd'
'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
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"
}

51
trunk/PKGBUILD

@ -0,0 +1,51 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=zeromq
pkgver=4.3.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.$pkgver::https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp")
sha256sums=('8e9c3af6dc5a8540b356697081303be392ade3f014615028b3c896d0148397fd'
'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
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"
}
Loading…
Cancel
Save