void-packages/srcpkgs/libnatpmp/template

35 lines
929 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="https://miniupnp.tuxfamily.org/libnatpmp.html"
changelog="https://miniupnp.tuxfamily.org/files/changelog.php?file=libnatpmp-${version}.tar.gz"
distfiles="https://miniupnp.tuxfamily.org/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"
}
}