summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD47
1 files changed, 47 insertions, 0 deletions
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 '{}' +
+}