add more compatibility libraries - FS#34101

ledoian
Allan McRae 12 years ago
parent 85f18b02b8
commit a648d2d481

@ -3,7 +3,7 @@
pkgname=ncurses pkgname=ncurses
pkgver=5.9 pkgver=5.9
pkgrel=4 pkgrel=5
pkgdesc="System V Release 4.0 curses emulation library" pkgdesc="System V Release 4.0 curses emulation library"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://www.gnu.org/software/ncurses/" url="http://www.gnu.org/software/ncurses/"
@ -24,7 +24,7 @@ build() {
# add --enable-ext-colors and --enable-ext-mouse with next soname bump # add --enable-ext-colors and --enable-ext-mouse with next soname bump
make make
# libncurses.so.5 for external binary support # libraries for external binary support
cd ${srcdir}/ncurses-build cd ${srcdir}/ncurses-build
[ $CARCH = "x86_64" ] && CONFIGFLAG="--with-chtype=long" [ $CARCH = "x86_64" ] && CONFIGFLAG="--with-chtype=long"
../${pkgname}-${pkgver}/configure --prefix=/usr \ ../${pkgname}-${pkgver}/configure --prefix=/usr \
@ -36,7 +36,7 @@ package() {
cd ${srcdir}/ncursesw-build cd ${srcdir}/ncursesw-build
make DESTDIR=${pkgdir} install make DESTDIR=${pkgdir} install
# Fool packages looking to link to non-wide-character ncurses libraries # fool packages looking to link to non-wide-character ncurses libraries
for lib in ncurses form panel menu; do for lib in ncurses form panel menu; do
echo "INPUT(-l${lib}w)" >${pkgdir}/usr/lib/lib${lib}.so echo "INPUT(-l${lib}w)" >${pkgdir}/usr/lib/lib${lib}.so
ln -s lib${lib}w.a ${pkgdir}/usr/lib/lib${lib}.a ln -s lib${lib}w.a ${pkgdir}/usr/lib/lib${lib}.a
@ -47,16 +47,18 @@ package() {
ln -s ${lib}w.pc ${pkgdir}/usr/lib/pkgconfig/${lib}.pc ln -s ${lib}w.pc ${pkgdir}/usr/lib/pkgconfig/${lib}.pc
done done
# Some packages look for -lcurses during build # some packages look for -lcurses during build
echo "INPUT(-lncursesw)" >${pkgdir}/usr/lib/libcursesw.so echo "INPUT(-lncursesw)" >${pkgdir}/usr/lib/libcursesw.so
ln -s libncurses.so ${pkgdir}/usr/lib/libcurses.so ln -s libncurses.so ${pkgdir}/usr/lib/libcurses.so
ln -s libncursesw.a ${pkgdir}/usr/lib/libcursesw.a ln -s libncursesw.a ${pkgdir}/usr/lib/libcursesw.a
ln -s libncurses.a ${pkgdir}/usr/lib/libcurses.a ln -s libncurses.a ${pkgdir}/usr/lib/libcurses.a
# non-widec compatibility library # non-widec compatibility libraries
cd ${srcdir}/ncurses-build cd ${srcdir}/ncurses-build
install -Dm755 lib/libncurses.so.${pkgver} ${pkgdir}/usr/lib/libncurses.so.${pkgver} for lib in ncurses form panel menu; do
ln -s libncurses.so.${pkgver} ${pkgdir}/usr/lib/libncurses.so.5 install -Dm755 lib/lib${lib}.so.${pkgver} ${pkgdir}/usr/lib/lib${lib}.so.${pkgver}
ln -s lib${lib}.so.${pkgver} ${pkgdir}/usr/lib/lib${lib}.so.5
done
# install license, rip it from the readme # install license, rip it from the readme
cd ${srcdir}/${pkgname}-${pkgver} cd ${srcdir}/${pkgname}-${pkgver}

Loading…
Cancel
Save