void-packages/srcpkgs/libupnp/template

35 lines
852 B
Bash

# Template file for 'libupnp'
pkgname=libupnp
version=1.14.4
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
short_desc="Portable Open Source UPnP Development Kit"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://pupnp.github.io/pupnp/"
distfiles="https://github.com/pupnp/pupnp/releases/download/release-$version/$pkgname-$version.tar.bz2"
checksum=cd649ef53070e9b88680f730ed5b3f919658582d43dd315a2ed8b6105c6fbe63
CFLAGS="-D_FILE_OFFSET_BITS=64"
post_install() {
vlicense COPYING
}
pre_configure() {
autoreconf -fi
}
libupnp-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
conflicts="libupnp1.8-devel>=0"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}