netbsd-curses: se añade función para crear paquete con librerías de desarrollo

This commit is contained in:
Tuxliban Torvalds 2022-05-12 15:29:20 -05:00
parent 56baca3b1b
commit 78578c7ad8
2 changed files with 22 additions and 4 deletions

View File

@ -0,0 +1,2 @@
In order to create the netbsd-curses package it's necessary to create the following symbolic link in the srcpkgs directory of the cloned void-packages repository:
ln -s netbsd-curses netbsd-curses-devel

View File

@ -1,7 +1,7 @@
# Template file for 'netbsd-curses'
pkgname=netbsd-curses
version=0.3.2
revision=1
revision=2
build_style=gnu-makefile
short_desc="Drop in replacement ported from netbsd. Smaller than ncurses"
maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
@ -10,7 +10,23 @@ homepage="https://github.com/sabotage-linux/netbsd-curses"
distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
checksum=9d3ebd651e5f70b87b1327b01cbd7e0c01a0f036b4c1371f653b7704b11daf23
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vlicense COPYING
do_build() {
make CC=$CC CFLAGS+=" -fPIC"
}
post_install() {
cd ${DESTDIR}/usr/bin
ln -sf tic captoinfo
ln -sf tic infotocap
}
netbsd-curses-devel_package() {
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/share/man/man3
}
}