summaryrefslogtreecommitdiff
path: root/community/libnatpmp
diff options
context:
space:
mode:
Diffstat (limited to 'community/libnatpmp')
-rw-r--r--community/libnatpmp/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/libnatpmp/PKGBUILD b/community/libnatpmp/PKGBUILD
new file mode 100644
index 000000000..e82261a32
--- /dev/null
+++ b/community/libnatpmp/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 107318 2014-03-17 02:18:37Z anatolik $
+# Maintainer: Anatol Pomozov <anatol dot pomozov at gmail>
+# Contributor: Gustavo Alvarez <s1pkn07@gmail.com>
+# Contributor: Kristjan Reinloo <mail at kreinloo dot net>
+# Contributor: Pierre Bourdon <delroth@gmail.com>
+
+pkgname=libnatpmp
+pkgver=20131126
+pkgrel=1
+pkgdesc='A portable and fully compliant implementation of the NAT-PMP protocol'
+arch=(i686 x86_64)
+url='http://miniupnp.free.fr/libnatpmp.html'
+license=(BSD)
+depends=(glibc)
+source=(http://miniupnp.tuxfamily.org/files/libnatpmp-$pkgver.tar.gz)
+sha1sums=('604a620fa38e0681d4822400156db2daaee954d1')
+
+prepare() {
+ sed -e 's/CFLAGS = /CFLAGS += /' -i $pkgname-$pkgver/Makefile
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make INSTALLPREFIX="$pkgdir/usr" INSTALLDIRINC="$pkgdir/usr/include" install
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}