summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-06-09 11:41:58 -0700
committerAndy Weidenbaum2015-06-09 11:41:58 -0700
commit80296edd81db600add4e4ffa0a40ef1079a073af (patch)
tree067fb0cb9acb91ea749ef09ba74cacfd9a71067f
downloadaur-80296edd81db600add4e4ffa0a40ef1079a073af.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD47
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9f66239c4f1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = czmqpp-git
+ pkgdesc = C++ wrapper for czmq
+ pkgver = 20150212
+ pkgrel = 1
+ url = https://github.com/zeromq/czmqpp
+ arch = i686
+ arch = x86_64
+ license = LGPL3
+ makedepends = autoconf
+ makedepends = gcc
+ makedepends = git
+ makedepends = make
+ makedepends = pkg-config
+ depends = czmq-git
+ depends = zeromq
+ provides = czmqpp
+ conflicts = czmqpp
+ source = git+https://github.com/zeromq/czmqpp
+ sha256sums = SKIP
+
+pkgname = czmqpp-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8e3b9020152
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+# Contributor: bobberb
+
+pkgname=czmqpp-git
+pkgver=20150212
+pkgrel=1
+pkgdesc="C++ wrapper for czmq"
+arch=('i686' 'x86_64')
+depends=('czmq-git' 'zeromq')
+makedepends=('autoconf' 'gcc' 'git' 'make' 'pkg-config')
+url="https://github.com/zeromq/czmqpp"
+license=('LGPL3')
+source=(git+https://github.com/zeromq/czmqpp)
+sha256sums=('SKIP')
+provides=('czmqpp')
+conflicts=('czmqpp')
+
+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/czmqpp \
+ --sysconfdir=/etc \
+ --sharedstatedir=/usr/share/czmqpp \
+ --localstatedir=/var/lib/czmqpp \
+ --with-gnu-ld
+ make
+}
+
+package() {
+ cd ${pkgname%-git}
+
+ msg 'Installing...'
+ make DESTDIR="$pkgdir" install
+
+ msg 'Cleaning up pkgdir...'
+ find "$pkgdir" -type d -name .git -exec rm -r '{}' +
+}