39 lines
1.3 KiB
Text
Executable file
39 lines
1.3 KiB
Text
Executable file
# Description: Libraries for terminal-independent handling of character screens
|
|
# URL:
|
|
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
|
|
# Depends on:
|
|
|
|
name=ncurses
|
|
version=6.2
|
|
release=1
|
|
source=(https://ftp.gnu.org/gnu//$name/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--with-shared \
|
|
--without-debug \
|
|
--without-normal \
|
|
--enable-pc-files \
|
|
--enable-widec
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
mkdir -p $PKG/lib
|
|
mv -v $PKG/usr/lib/libncursesw.so.6* $PKG/lib
|
|
ln -sfv ../../lib/$(readlink $PKG/usr/lib/libncursesw.so) $PKG/usr/lib/libncursesw.so
|
|
|
|
for lib in ncurses form panel menu ; do
|
|
rm -vf $PKG/usr/lib/lib${lib}.so
|
|
echo "INPUT(-l${lib}w)" > $PKG/usr/lib/lib${lib}.so
|
|
ln -sfv ${lib}w.pc $PKG/usr/lib/pkgconfig/${lib}.pc
|
|
done
|
|
|
|
rm -vf $PKG/usr/lib/libcursesw.so
|
|
echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so
|
|
ln -sfv libncurses.so $PKG/usr/lib/libcurses.so
|
|
}
|