Created
April 26, 2013 17:54
-
-
Save anonymous/5469088 to your computer and use it in GitHub Desktop.
PKGBUILD.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 81045 2012-12-11 02:47:01Z kkeen $ | |
# Maintainer: Kyle Keen <keenerd@gmail.com> | |
pkgname=zeromq | |
pkgver=3.2.2 | |
pkgrel=2 | |
pkgdesc="Fast messaging system built on sockets, C and C++ bindings. aka 0MQ, ZMQ." | |
arch=('i686' 'x86_64' sh4) | |
url="http://www.zeromq.org" | |
license=('LGPL') | |
depends=('gcc-libs' 'util-linux') | |
makedepends=('python2') | |
source=(http://download.zeromq.org/$pkgname-$pkgver.tar.gz | |
https://raw.github.com/zeromq/cppzmq/master/zmq.hpp | |
sh4_mutex.patch | |
) | |
md5sums=('df68431d9300da84a1a5f9a2784e33de' | |
'37805e6859ce1900041c9a2613936ec7' | |
'7a7e2dfd7de4ed46ded3af708134f7fc') | |
build() { | |
msg building zmq, to extract pgm code, ignore the first build error | |
cd "$srcdir/$pkgname-$pkgver" | |
patch -Np1 -i ../sh4_mutex.patch configure.in | |
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in | |
./autogen.sh | |
./configure prefix=/usr --with-pgm --with-gcov=no PYTHON=/usr/bin/python2 | |
sed -i 's/python$/&2/' foreign/openpgm/build-staging/openpgm/pgm/{Makefile,version_generator.py} | |
#sed -i 's/^LDFLAGS =/&-shared/' perf/Makefile | |
#make V=1 || true | |
#msg building pgm | |
#cd "$srcdir/$pkgname-$pkgver/foreign/openpgm/build-staging/openpgm/pgm" | |
#./configure prefix=/usr PYTHON=/usr/bin/python2 | |
#make V=1 | |
#msg building zmq again | |
#cd "$srcdir/$pkgname-$pkgver" | |
make V=1 | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
make DESTDIR="$pkgdir" install | |
install -Dm644 "$srcdir/zmq.hpp" "$pkgdir/usr/include/zmq.hpp" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment