summaryrefslogtreecommitdiff
path: root/social/libnatpmp/PKGBUILD
blob: e81d3445fb585ff19e2b5e0589ee6a8758e0aa4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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')