void-packages/srcpkgs/libupnp1.8/template

37 lines
955 B
Bash

# Template file for 'libupnp1.8'
pkgname=libupnp1.8
version=1.8.7
revision=1
wrksrc="pupnp-release-${version}"
build_style=gnu-configure
configure_args="--enable-ipv6 --enable-reuseaddr"
hostmakedepends="automake libtool pkg-config"
short_desc="Portable Open Source UPnP Development Kit"
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
license="BSD-3-Clause"
homepage="http://pupnp.sourceforge.net/"
distfiles="https://github.com/mrjimenez/pupnp/archive/release-${version}.tar.gz"
checksum=236a788a0fe1274f51497c0433398ab2fd8ecf3ed8a6e738b15896f63e89c81d
# libupnp uses large file support, so users must do that, too
CFLAGS="-D_FILE_OFFSET_BITS=64"
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense COPYING
}
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"
}
}