ports: Fix packaging of bunch of ports
This commit is contained in:
@@ -6,7 +6,7 @@ DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz#355b
|
||||
CONFIG_SUB=('config.sub')
|
||||
CONFIGURE_OPTIONS=(
|
||||
"--with-pkg-config='$PKG_CONFIG'"
|
||||
"--with-pkg-config-libdir=/usr/lib/pkgconfig"
|
||||
'--with-pkg-config-libdir=/usr/lib/pkgconfig'
|
||||
'--enable-pc-files'
|
||||
'--enable-sigwinch'
|
||||
'--with-shared'
|
||||
@@ -16,12 +16,16 @@ CONFIGURE_OPTIONS=(
|
||||
CFLAGS='-std=c17'
|
||||
)
|
||||
|
||||
pre_configure() {
|
||||
unset TERMINFO TERMINFO_DIRS
|
||||
}
|
||||
|
||||
post_install() {
|
||||
for lib in ncurses ncurses++ form panel menu; do
|
||||
ln -sv ${lib}w.pc "$DESTDIR/usr/lib/pkgconfig/$lib.pc"
|
||||
for lib in ncurses form panel menu; do
|
||||
ln -svf ${lib}w.pc "$DESTDIR/usr/lib/pkgconfig/$lib.pc"
|
||||
done
|
||||
|
||||
ln -sv libncursesw.so "$DESTDIR/usr/lib/libncurses.so"
|
||||
ln -svf libncursesw.so "$DESTDIR/usr/lib/libncurses.so"
|
||||
|
||||
mkdir -p "$DESTDIR/etc/profile.d"
|
||||
echo 'export NCURSES_NO_UTF8_ACS=1' > "$DESTDIR/etc/profile.d/ncurses.sh"
|
||||
|
||||
Reference in New Issue
Block a user