fix FS#34101

ledoian
Florian Pritz 12 years ago
parent c15721cb8e
commit a0d8032c47

@ -4,7 +4,7 @@
_pkgbasename=ncurses
pkgname=lib32-${_pkgbasename}
pkgver=5.9
pkgrel=1
pkgrel=2
pkgdesc="System V Release 4.0 curses emulation library (32-bit)"
arch=('x86_64')
url="http://www.gnu.org/software/ncurses/"
@ -28,7 +28,7 @@ build() {
--with-install-prefix=${pkgdir} --enable-widec --libdir=/usr/lib32
make
# libncurses.so.5 for external binary support
# libraries for external binary support
cd ${srcdir}/ncurses-build
# [ $CARCH = "x86_64" ] && CONFIGFLAG="--with-chtype=long"
../${_pkgbasename}-${pkgver}/configure --prefix=/usr \
@ -43,7 +43,7 @@ package() {
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
rm -f ${pkgdir}/usr/lib32/lib${lib}.so
echo "INPUT(-l${lib}w)" >${pkgdir}/usr/lib32/lib${lib}.so
@ -51,17 +51,21 @@ package() {
done
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
echo "INPUT(-lncursesw)" >${pkgdir}/usr/lib32/libcursesw.so
ln -sf libncurses.so ${pkgdir}/usr/lib32/libcurses.so
ln -sf libncursesw.a ${pkgdir}/usr/lib32/libcursesw.a
ln -sf libncurses.a ${pkgdir}/usr/lib32/libcurses.a
# non-widec compatibility library
# non-widec compatibility libraries
cd ${srcdir}/ncurses-build
install -Dm755 lib/libncurses.so.${pkgver} ${pkgdir}/usr/lib32/libncurses.so.${pkgver}
ln -sf libncurses.so.${pkgver} ${pkgdir}/usr/lib32/libncurses.so.5
for lib in ncurses form panel menu; do
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}
}
# vim: set et ts=2 sw=2:

Loading…
Cancel
Save