summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-06-09 11:41:58 -0700
committerAndy Weidenbaum2015-06-09 11:41:58 -0700
commitc7caba1c6d145fb912e859abda71824ddff92306 (patch)
treee3a0d4d7189288e0fde57b578dccfd18c788c6e8
downloadaur-c7caba1c6d145fb912e859abda71824ddff92306.tar.gz
Initial import
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD56
2 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e88fb9afd29
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = czmq-git
+ pkgdesc = High-level C binding for ZeroMQ
+ pkgver = 20150520
+ pkgrel = 1
+ url = https://github.com/zeromq/czmq
+ arch = i686
+ arch = x86_64
+ license = MPL
+ makedepends = autoconf
+ makedepends = automake
+ makedepends = gcc
+ makedepends = git
+ makedepends = libtool
+ makedepends = make
+ makedepends = pkg-config
+ depends = gcc-libs
+ depends = libsodium
+ depends = zeromq
+ provides = czmq
+ conflicts = czmq
+ source = git+https://github.com/zeromq/czmq
+ sha256sums = SKIP
+
+pkgname = czmq-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..028aa946a8c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+# Contributor: Brian Knox <taotetek at gmail.com>
+
+pkgname=czmq-git
+pkgver=20150520
+pkgrel=1
+pkgdesc="High-level C binding for ZeroMQ"
+arch=('i686' 'x86_64')
+depends=('gcc-libs' 'libsodium' 'zeromq')
+makedepends=('autoconf' 'automake' 'gcc' 'git' 'libtool' 'make' 'pkg-config')
+url="https://github.com/zeromq/czmq"
+license=('MPL')
+source=(git+https://github.com/zeromq/czmq)
+sha256sums=('SKIP')
+provides=('czmq')
+conflicts=('czmq')
+
+pkgver() {
+ cd ${pkgname%-git}
+ git log -1 --format="%cd" --date=short | sed "s|-||g"
+}
+
+build() {
+ cd ${pkgname%-git}
+
+ msg 'Building...'
+ ./autogen.sh
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib/czmq \
+ --sysconfdir=/etc \
+ --sharedstatedir=/usr/share/czmq \
+ --localstatedir=/var/lib/czmq \
+ --with-gnu-ld
+ make
+}
+
+package() {
+ cd ${pkgname%-git}
+
+ msg 'Installing license...'
+ install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/czmq/LICENSE"
+
+ msg 'Installing...'
+ make DESTDIR="$pkgdir" install
+
+ msg 'Renaming binaries...'
+ for _bin in `find "$pkgdir/usr/bin" -type f -printf '%f\n'`; do
+ mv "$pkgdir/usr/bin/$_bin" "$pkgdir/usr/bin/czmq_$_bin"
+ done
+
+ msg 'Cleaning up pkgdir...'
+ find "$pkgdir" -type d -name .git -exec rm -r '{}' +
+ find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' +
+}