netbsd-curses: Se crean subpaquetes: netbsd-curses-libs y netbsd-curses-devel

This commit is contained in:
Tuxliban Torvalds 2022-06-09 06:06:59 -05:00
parent 3b79bf6ddd
commit 717d11bb77
2 changed files with 25 additions and 4 deletions

View File

@ -1,2 +1,12 @@
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
ln -s netbsd-curses netbsd-curses-libs
Then add this in common/shlibs
libterminfo.so netbsd-curses-libs-0.3.2_1
libmenu.so netbsd-curses-libs-0.3.2_1
libform.so netbsd-curses-libs-0.3.2_1
libpanel.so netbsd-curses-libs-0.3.2_1
libcurses.so netbsd-curses-libs-0.3.2_1

View File

@ -1,7 +1,7 @@
# Template file for 'netbsd-curses'
pkgname=netbsd-curses
version=0.3.2
revision=3
revision=4
build_style=gnu-makefile
short_desc="Drop in replacement ported from netbsd. Smaller than ncurses"
maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
@ -9,6 +9,7 @@ license="BSD-3-Clause"
homepage="https://github.com/sabotage-linux/netbsd-curses"
distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
checksum=9d3ebd651e5f70b87b1327b01cbd7e0c01a0f036b4c1371f653b7704b11daf23
subpackages="netbsd-curses netbsd-curses-libs netbsd-curses-devel"
do_build() {
make CC=$CC CFLAGS+=" -fPIC"
@ -22,13 +23,23 @@ post_install() {
ln -sf tic infotocap
}
netbsd-curses-libs_package() {
short_desc+=" -- shared libraries"
shlib_provides="libcurses.so libform.so libmenu.so libpanel.so libterminfo.so"
pkg_install() {
vinstall ${DESTDIR}/usr/lib/libcurses.so 755 usr/lib/${pkgname} libcurses.so
vinstall ${DESTDIR}/usr/lib/libform.so 755 usr/lib/${pkgname} libform.so
vinstall ${DESTDIR}/usr/lib/libmenu.so 755 usr/lib/${pkgname} libmenu.so
vinstall ${DESTDIR}/usr/lib/libpanel.so 755 usr/lib/${pkgname} libpanel.so
vinstall ${DESTDIR}/usr/lib/libterminfo.so 755 usr/lib/${pkgname} libterminfo.so
}
}
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/lib
vmove usr/share/man/man3
}
}