summaryrefslogtreecommitdiff
path: root/social/libnatpmp/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@localhost.localdomain>2012-09-24 13:02:19 -0300
committerAndré Fabian Silva Delgado <andre@localhost.localdomain>2012-09-24 13:02:19 -0300
commit92f96e03374d0a3b3fc337216a93d0e05c5fe28e (patch)
tree2da58c0ae459698f5a6fe499157e9487fbe8c1d4 /social/libnatpmp/PKGBUILD
parentad858cca5d678864d08c21d0078de72c3875348e (diff)
parent78fe3445e73a42dc03f985329b38ca0fa361e706 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'social/libnatpmp/PKGBUILD')
-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')