ncurses fix
This commit is contained in:
1 parent
91452c8ab7
commit
956faa8468
1 file changed
+9
-10
@@ -10,7 +10,7 @@ license=('MIT')
|
|||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
source=(https://invisible-mirror.net/archives/$name/$name-$version.tar.gz)
|
source=(https://invisible-mirror.net/archives/$name/$name-$version.tar.gz)
|
||||||
md5sums=(a2736befde5fee7d2b7eb45eb281cdbe)
|
md5sums=(a2736befde5fee7d2b7eb45eb281cdbe)
|
||||||
depends=(glibc)
|
depends=()
|
||||||
so_ver=6
|
so_ver=6
|
||||||
group=(sys.libs)
|
group=(sys.libs)
|
||||||
|
|
||||||
@@ -20,7 +20,6 @@ setup(){
|
|||||||
cp -prf ../$name-$version ../widec
|
cp -prf ../$name-$version ../widec
|
||||||
opts=(--prefix=/usr
|
opts=(--prefix=/usr
|
||||||
--libdir=/lib64
|
--libdir=/lib64
|
||||||
--with-pkg-config-libdir=/lib64/pkgconfig
|
|
||||||
--without-ada
|
--without-ada
|
||||||
--without-tests
|
--without-tests
|
||||||
--disable-termcap
|
--disable-termcap
|
||||||
@@ -45,27 +44,27 @@ build(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
package(){
|
package(){
|
||||||
mkdir -p "$DESTDIR/lib64/ncurses/" "$DESTDIR/usr/lib64/pkgconfig/"
|
mkdir -p "$DESTDIR/lib64/" "$DESTDIR/usr/lib64/pkgconfig/"
|
||||||
for lib in ncurses ncurses++ form panel menu; do
|
for lib in ncurses ncurses++ form panel menu; do
|
||||||
printf "INPUT(-l%sw)\n" "${lib}" > "$DESTDIR/lib64/ncurses/lib${lib}.so"
|
printf "INPUT(-l%sw)\n" "${lib}" > "$DESTDIR/lib64/lib${lib}.so"
|
||||||
ln -sv ${lib}w.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
ln -sv ${lib}w.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
||||||
done
|
done
|
||||||
# some packages look for -lcurses during build
|
# some packages look for -lcurses during build
|
||||||
printf 'INPUT(-lncursesw)\n' > "$DESTDIR/lib64/ncurses/libcursesw.so"
|
printf 'INPUT(-lncursesw)\n' > "$DESTDIR/lib64/libcursesw.so"
|
||||||
ln -sv libncurses.so "$DESTDIR/lib64/ncurses/libcurses.so"
|
ln -sv libncurses.so "$DESTDIR/lib64/libcurses.so"
|
||||||
|
|
||||||
# tic and ticinfo functionality is built in by default
|
# tic and ticinfo functionality is built in by default
|
||||||
# make sure that anything linking against it links against libncursesw.so instead
|
# make sure that anything linking against it links against libncursesw.so instead
|
||||||
for lib in tic tinfo; do
|
for lib in tic tinfo; do
|
||||||
printf "INPUT(libncursesw.so.%s)\n" "${so_ver}" > "$DESTDIR/lib64/ncurses/lib${lib}.so"
|
printf "INPUT(libncursesw.so.%s)\n" "${so_ver}" > "$DESTDIR/lib64/lib${lib}.so"
|
||||||
if ! ls $DESTDIR/lib64/ncurses/lib${lib}.so.${so_ver} ; then
|
if ! ls $DESTDIR/lib64/lib${lib}.so.${so_ver} ; then
|
||||||
ln -sv libncursesw.so.${so_ver} "$DESTDIR/lib64/ncurses/lib${lib}.so.${so_ver}"
|
ln -sv libncursesw.so.${so_ver} "$DESTDIR/lib64/lib${lib}.so.${so_ver}"
|
||||||
ln -sv ncursesw.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
ln -sv ncursesw.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# legacy binary support
|
# legacy binary support
|
||||||
for lib in libncursesw libncurses libtinfo libpanelw libformw libmenuw ; do
|
for lib in libncursesw libncurses libtinfo libpanelw libformw libmenuw ; do
|
||||||
ln -sv ${lib}.so.${so_ver} "$DESTDIR"/lib64/ncurses/${lib}.so.5
|
ln -sv ${lib}.so.${so_ver} "$DESTDIR"/lib64/${lib}.so.5
|
||||||
done
|
done
|
||||||
cd ../widec
|
cd ../widec
|
||||||
make -j$(nproc) install
|
make -j$(nproc) install
|
||||||
|
|||||||
Reference in new issue
Block a user