diff --git a/common/shlibs b/common/shlibs index b5d8634b844..93b8afebaaa 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1092,6 +1092,7 @@ libORBit-2.so.0 libORBit2-2.14.19_1 libORBit-imodule-2.so.0 libORBit2-2.14.19_1 libORBitCosNaming-2.so.0 libORBit2-2.14.19_1 libminiupnpc.so.17 miniupnpc-2.1_1 +libnatpmp.so.1 libnatpmp-20230423_1 libxbps.so.5 libxbps-0.59.1_4 libatf-c.so.1 atf-libs-0.21_1 libatf-c++.so.2 atf-libs-0.21_1 diff --git a/srcpkgs/libnatpmp-devel b/srcpkgs/libnatpmp-devel new file mode 120000 index 00000000000..3d60a28ba8e --- /dev/null +++ b/srcpkgs/libnatpmp-devel @@ -0,0 +1 @@ +libnatpmp \ No newline at end of file diff --git a/srcpkgs/libnatpmp/template b/srcpkgs/libnatpmp/template new file mode 100644 index 00000000000..385c534809e --- /dev/null +++ b/srcpkgs/libnatpmp/template @@ -0,0 +1,34 @@ +# 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 " +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" + } +}