diff options
author | Dan Theisen <djt@hxx.in> | 2021-10-06 13:35:01 +0000 |
---|---|---|
committer | Dan Theisen <djt@hxx.in> | 2021-10-06 13:35:01 +0000 |
commit | 4b5157d7a0b3453665a8a1005eb17db8513d98a5 (patch) | |
tree | 28d00fba7fa5b5a6ac0a0e543f0feb3509f21894 /user/miniupnpc/APKBUILD | |
parent | cabbad7dc0742ea35ec44377efb7154ca28691f2 (diff) | |
download | packages-4b5157d7a0b3453665a8a1005eb17db8513d98a5.tar.gz packages-4b5157d7a0b3453665a8a1005eb17db8513d98a5.tar.bz2 packages-4b5157d7a0b3453665a8a1005eb17db8513d98a5.tar.xz packages-4b5157d7a0b3453665a8a1005eb17db8513d98a5.zip |
user/miniupnpc: new package
Diffstat (limited to 'user/miniupnpc/APKBUILD')
-rw-r--r-- | user/miniupnpc/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/user/miniupnpc/APKBUILD b/user/miniupnpc/APKBUILD new file mode 100644 index 000000000..c1445066a --- /dev/null +++ b/user/miniupnpc/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Dan Theisen <djt@hxx.in> +# Maintainer: Dan Theisen <djt@hxx.in> +pkgname=miniupnpc +pkgver=2.2.3 +pkgrel=0 +pkgdesc="A lightweight UPNP client enabling applications to control UPnP gateways" +url="https://miniupnp.tuxfamily.org/" +arch="all" +options="!check" # no tests +license="BSD-3-Clause" +depends="" +makedepends="cmake" +subpackages="$pkgname-dev $pkgname-doc" +source="http://miniupnp.tuxfamily.org/files/miniupnpc-$pkgver.tar.gz + fix-cmake-include-install.patch + " + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} \ + . + make +} + +package() { + make DESTDIR="$pkgdir" install + install -m644 -Dt "$pkgdir"/usr/share/man/man3 man3/miniupnpc.3 +} + + +sha512sums="8b9555d336d5dfe8017a16727f964cddacb3f2bf3528fe3dd2416480da5763b24e1740345e470f2123c170d79d88444e41dbbce4536e6069590925e4805bc5ee miniupnpc-2.2.3.tar.gz +426fb6a67f6114e49eef59d7e87a68a749341707eca58699fbe530a49e08c66435e9bd05d8e4ddd30ad1d48d193203cd16f34754bfbe0ac3f68c28f130e41b3d fix-cmake-include-install.patch" |