summaryrefslogtreecommitdiff
path: root/pcr/libnatpmp-from-social-repo/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-12-27 08:11:09 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-12-27 08:11:09 -0200
commitc71421e6252a7f06a8999ef564299afdfb020fa5 (patch)
tree2f1fbe0acf1ea464298e34393858a46b9087b9b0 /pcr/libnatpmp-from-social-repo/PKGBUILD
parentf60aebf4cdfb03f070382141be83ff880637c040 (diff)
parentac9b0c15630b9a5c62bb8ca1d6a617acb1dc91c7 (diff)
downloadabslibre-c71421e6252a7f06a8999ef564299afdfb020fa5.tar.gz
abslibre-c71421e6252a7f06a8999ef564299afdfb020fa5.tar.bz2
abslibre-c71421e6252a7f06a8999ef564299afdfb020fa5.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/libnatpmp-from-social-repo/PKGBUILD')
-rw-r--r--pcr/libnatpmp-from-social-repo/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/pcr/libnatpmp-from-social-repo/PKGBUILD b/pcr/libnatpmp-from-social-repo/PKGBUILD
new file mode 100644
index 000000000..ded1e6ca5
--- /dev/null
+++ b/pcr/libnatpmp-from-social-repo/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' 'mips64el')
+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')