void-packages/srcpkgs/libupnp1.8/template

37 lines
937 B
Bash

# Template file for 'libupnp1.8'
pkgname=libupnp1.8
version=1.8.3
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="A Portable Open Source UPnP Development Kit"
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
license="BSD"
homepage="http://pupnp.sourceforge.net/"
distfiles="https://github.com/mrjimenez/pupnp/archive/release-${version}.tar.gz"
wrksrc="pupnp-release-${version}"
checksum=22adb8a54d71e5aa7315c3289fdb5bbbb6020199890abf4711a4426396f8e0df
configure_args="--enable-ipv6 --enable-reuseaddr"
# libupnp uses large file support, so users must do that, too
CFLAGS="-D_FILE_OFFSET_BITS=64"
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense LICENSE
}
libupnp1.8-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}