diff --git a/libnatpmp/.SRCINFO b/libnatpmp/.SRCINFO new file mode 100644 index 0000000000..20617edfe0 --- /dev/null +++ b/libnatpmp/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = libnatpmp + pkgdesc = A portable and fully compliant implementation of the NAT-PMP protocol + pkgver = 20230423 + pkgrel = 3 + url = http://miniupnp.free.fr/libnatpmp.html + arch = x86_64 + license = BSD + depends = glibc + source = https://miniupnp.tuxfamily.org/files/libnatpmp-20230423.tar.gz + sha256sums = 0684ed2c8406437e7519a1bd20ea83780db871b3a3a5d752311ba3e889dbfc70 + +pkgname = libnatpmp diff --git a/libnatpmp/PKGBUILD b/libnatpmp/PKGBUILD new file mode 100644 index 0000000000..5114aa8793 --- /dev/null +++ b/libnatpmp/PKGBUILD @@ -0,0 +1,36 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Baptiste Jonglez +# Contributor: Anatol Pomozov +# Contributor: Gustavo Alvarez +# Contributor: Kristjan Reinloo +# Contributor: Pierre Bourdon + +pkgname=libnatpmp +pkgver=20230423 +pkgrel=3 +pkgdesc='A portable and fully compliant implementation of the NAT-PMP protocol' +arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) +url='http://miniupnp.free.fr/libnatpmp.html' +license=(BSD) +depends=(glibc) +source=("https://miniupnp.tuxfamily.org/files/libnatpmp-$pkgver.tar.gz") +sha256sums=('0684ed2c8406437e7519a1bd20ea83780db871b3a3a5d752311ba3e889dbfc70') + +prepare() { + cd $pkgname-$pkgver + sed -e 's/CFLAGS = /CFLAGS += /' -i Makefile +} + +build() { + cd $pkgname-$pkgver + make +} + +package() { + cd $pkgname-$pkgver + make INSTALLPREFIX="$pkgdir/usr" INSTALLDIRINC="$pkgdir/usr/include" install +# Install missing header + install -Dm644 natpmp_declspec.h -t "$pkgdir"/usr/include + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 natpmpc.1 "$pkgdir/usr/share/man/man1/natpmpc.1" +}