void-packages/srcpkgs/libnatpmp/template

35 lines
908 B
Bash

# Template file for 'libnatpmp'
pkgname=libnatpmp
version=20230423
revision=1
build_style=gnu-makefile
make_use_env=y
short_desc="Libraries for client side of NAT-PMP"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="BSD-3-Clause"
homepage="http://miniupnp.free.fr/libnatpmp.html"
changelog="http://miniupnp.free.fr/files/changelog.php?file=libnatpmp-${version}.tar.gz"
distfiles="http://miniupnp.free.fr/files/libnatpmp-${version}.tar.gz"
checksum=0684ed2c8406437e7519a1bd20ea83780db871b3a3a5d752311ba3e889dbfc70
post_patch() {
sed -i '/^CC =/d' Makefile
}
do_install() {
make install PREFIX=$DESTDIR
vinstall natpmp_declspec.h 0644 usr/include
vman natpmpc.1
vlicense LICENSE
}
libnatpmp-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}