diff options
Diffstat (limited to 'testing/miniupnpc/APKBUILD')
-rw-r--r-- | testing/miniupnpc/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/miniupnpc/APKBUILD b/testing/miniupnpc/APKBUILD new file mode 100644 index 0000000000..6929f46c82 --- /dev/null +++ b/testing/miniupnpc/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: +# Maintainer: +pkgname=miniupnpc +pkgver=1.8 +pkgrel=0 +pkgdesc="Library and tool to control NAT in UPnP-enabled routers" +url="http://miniupnp.free.fr/" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://miniupnp.free.fr/files/miniupnpc-$pkgver.tar.gz" + +_builddir="$srcdir"/miniupnpc-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + make PREFIX="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="065bf20a20ebe605c675b7a5aaef340a miniupnpc-1.8.tar.gz" +sha256sums="bc5f73c7b0056252c1888a80e6075787a1e1e9112b808f863a245483ff79859c miniupnpc-1.8.tar.gz" +sha512sums="8eedac9ad473fc952ca8896fe534d6da6b1b234e8b6f35f721394d4c71aca84ed287ca6c4f0455b50d97a45e4cd34e27d99a6813386e0864781364aa607e13d4 miniupnpc-1.8.tar.gz" |