summaryrefslogtreecommitdiff
path: root/social/libnatpmp
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-09-23 20:54:47 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-09-23 20:54:47 -0300
commit2b5ff18a1b5444a26a3e2d7c53e39b8bf8981078 (patch)
tree96c994d1210e55e71ffcf1caae70e384a589ab60 /social/libnatpmp
parent0670b36641306c158e4bb03cf8647c082138945c (diff)
libnatpmp with fixed crash on client http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=1192
Diffstat (limited to 'social/libnatpmp')
-rw-r--r--social/libnatpmp/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/social/libnatpmp/PKGBUILD b/social/libnatpmp/PKGBUILD
new file mode 100644
index 000000000..e81d3445f
--- /dev/null
+++ b/social/libnatpmp/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Pierre Bourdon <delroth@gmail.com>
+
+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=('BSD')
+depends=('glibc')
+makedepends=()
+source=(libnatpmp-$pkgver.tar.gz::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"
+
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+md5sums=('d2b9c2dedba3a00deb0e7589982ceced')