summaryrefslogtreecommitdiff
path: root/community/pion
diff options
context:
space:
mode:
Diffstat (limited to 'community/pion')
-rw-r--r--community/pion/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/pion/PKGBUILD b/community/pion/PKGBUILD
new file mode 100644
index 000000000..02be15ca0
--- /dev/null
+++ b/community/pion/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 94042 2013-07-13 12:35:54Z svenstaro $
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+pkgname=pion
+pkgver=5.0.2
+pkgrel=1
+pkgdesc="A C++ development library for implementing lightweight HTTP interfaces"
+url="https://github.com/cloudmeter/pion"
+arch=('i686' 'x86_64')
+license=('custom:Boost')
+depends=('boost-libs' 'openssl' 'log4cpp')
+makedepends=('boost')
+provides=('pion-net')
+conflicts=('pion-net')
+replaces=('pion-net')
+source=(https://github.com/cloudmeter/pion/archive/$pkgver.zip)
+md5sums=('1f6a9f69114235ca98756cbcab16d162')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ sh autogen.sh
+
+ # override configure bug (forces debug even when nobody asked for it)
+ sed -i "s/ -ggdb//g" configure
+ # override Makefile bug
+ sed -i "/docs:/ s/doxygen-doc//" Makefile.in
+
+ ./configure --prefix=/usr --disable-doxygen-doc
+
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ # install license
+ install -D -m0755 COPYING "$pkgdir/usr/share/licenses/$pkgname/Boost"
+}