updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / libnatpmp / PKGBUILD
blob5de6b140dcbdd816728e7432ea83bf4c26aa31d5
1 # Maintainer: Pierre Bourdon <delroth@gmail.com>
3 pkgname=libnatpmp
4 pkgver=20110618
5 pkgrel=1
6 pkgdesc="A portable and fully compliant implementation of the NAT-PMP protocol"
7 arch=('i686' 'x86_64')
8 url="http://miniupnp.free.fr/libnatpmp.html"
9 license=('custom:BSD')
10 depends=('glibc')
11 makedepends=()
12 source=('http://miniupnp.free.fr/files/download.php?file=libnatpmp-20110618.tar.gz')
13 sha256sums=('ec4028729e0e9da09badde9986fe6b43ef67914d8382144fad07d4e905983ea1')
15 build() {
16     cd "$srcdir/$pkgname-$pkgver"
17     make
20 package() {
21     cd "$srcdir/$pkgname-$pkgver"
22     make INSTALLPREFIX="$pkgdir/usr" \
23          INSTALLDIRINC="$pkgdir/usr/include/libnatpmp" install
25     # Needed by some packages
26     install -m 644 getgateway.h declspec.h "$pkgdir/usr/include/libnatpmp"