summaryrefslogtreecommitdiff
path: root/pcr/libnatpmp
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-14 01:13:06 -0800
committerroot <root@rshg054.dnsready.net>2012-11-14 01:13:06 -0800
commit6fa5f08247aef1f757f376ef12bd4a6257c124f2 (patch)
treeb743d1e7cbc92a595661ecd730522cee45ebcabe /pcr/libnatpmp
parenta29329c38e50afd28d28c3a99e35d8774b9b19f8 (diff)
Wed Nov 14 01:13:05 PST 2012
Diffstat (limited to 'pcr/libnatpmp')
-rw-r--r--pcr/libnatpmp/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/pcr/libnatpmp/PKGBUILD b/pcr/libnatpmp/PKGBUILD
new file mode 100644
index 000000000..0fa0ff469
--- /dev/null
+++ b/pcr/libnatpmp/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Pierre Bourdon <delroth@gmail.com>
+# Maintainer: Parabola Gnu / Linux-libre Aurélien Desbrières
+
+pkgname=libnatpmp
+pkgver=20120821
+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=('custom:BSD')
+depends=('glibc')
+makedepends=()
+source=(http://miniupnp.free.fr/files/download.php?file=libnatpmp-$pkgver.tar.gz)
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make INSTALLPREFIX="$pkgdir/usr" \
+ INSTALLDIRINC="$pkgdir/usr/include/libnatpmp" install
+
+ # Needed by some packages
+ install -m 644 getgateway.h declspec.h "$pkgdir/usr/include/libnatpmp"
+}
+md5sums=('22a1225b890471a7750a9bf26eb863f7')