summaryrefslogblamecommitdiff
path: root/user/miniupnpc/APKBUILD
blob: c1445066a98c2a6236d4884de4a517e6ffda4c5c (plain) (tree)








































                                                                                                                                                                    
# 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"