fix FS#34101

ledoian
Florian Pritz 12 years ago
parent c15721cb8e
commit a0d8032c47

@ -4,7 +4,7 @@
_pkgbasename=ncurses _pkgbasename=ncurses
pkgname=lib32-${_pkgbasename} pkgname=lib32-${_pkgbasename}
pkgver=5.9 pkgver=5.9
pkgrel=1 pkgrel=2
pkgdesc="System V Release 4.0 curses emulation library (32-bit)" pkgdesc="System V Release 4.0 curses emulation library (32-bit)"
arch=('x86_64') arch=('x86_64')
url="http://www.gnu.org/software/ncurses/" url="http://www.gnu.org/software/ncurses/"
@ -28,7 +28,7 @@ build() {
--with-install-prefix=${pkgdir} --enable-widec --libdir=/usr/lib32 --with-install-prefix=${pkgdir} --enable-widec --libdir=/usr/lib32
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"
../${_pkgbasename}-${pkgver}/configure --prefix=/usr \ ../${_pkgbasename}-${pkgver}/configure --prefix=/usr \
@ -43,7 +43,7 @@ package() {
install -dm755 ${pkgdir}/usr/lib32 install -dm755 ${pkgdir}/usr/lib32
# 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 curses ncurses form panel menu; do for lib in curses ncurses form panel menu; do
rm -f ${pkgdir}/usr/lib32/lib${lib}.so rm -f ${pkgdir}/usr/lib32/lib${lib}.so
echo "INPUT(-l${lib}w)" >${pkgdir}/usr/lib32/lib${lib}.so echo "INPUT(-l${lib}w)" >${pkgdir}/usr/lib32/lib${lib}.so
@ -51,17 +51,21 @@ package() {
done done
ln -sf libncurses++w.a ${pkgdir}/usr/lib32/libncurses++.a ln -sf libncurses++w.a ${pkgdir}/usr/lib32/libncurses++.a
# Some packages look for -lcurses during build # some packages look for -lcurses during build
rm -f ${pkgdir}/usr/lib32/libcursesw.so rm -f ${pkgdir}/usr/lib32/libcursesw.so
echo "INPUT(-lncursesw)" >${pkgdir}/usr/lib32/libcursesw.so echo "INPUT(-lncursesw)" >${pkgdir}/usr/lib32/libcursesw.so
ln -sf libncurses.so ${pkgdir}/usr/lib32/libcurses.so ln -sf libncurses.so ${pkgdir}/usr/lib32/libcurses.so
ln -sf libncursesw.a ${pkgdir}/usr/lib32/libcursesw.a ln -sf libncursesw.a ${pkgdir}/usr/lib32/libcursesw.a
ln -sf libncurses.a ${pkgdir}/usr/lib32/libcurses.a ln -sf libncurses.a ${pkgdir}/usr/lib32/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/lib32/libncurses.so.${pkgver} for lib in ncurses form panel menu; do
ln -sf libncurses.so.${pkgver} ${pkgdir}/usr/lib32/libncurses.so.5 install -Dm755 lib/lib${lib}.so.${pkgver} ${pkgdir}/usr/lib32/lib${lib}.so.${pkgver}
ln -s lib${lib}.so.${pkgver} ${pkgdir}/usr/lib32/lib${lib}.so.5
done
rm -rf "${pkgdir}"/usr/{include,share,bin} rm -rf "${pkgdir}"/usr/{include,share,bin}
} }
# vim: set et ts=2 sw=2:

Loading…
Cancel
Save