mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-04 05:37:15 +08:00
lib32-ncurses: upgrade with ncurses group
This commit is contained in:
parent
db0b5fdf85
commit
50a4533150
@ -1,50 +1,41 @@
|
|||||||
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
||||||
#
|
|
||||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
||||||
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
||||||
|
|
||||||
_pkgbasename=ncurses
|
_pkgbasename=ncurses
|
||||||
pkgname=lib32-${_pkgbasename}
|
pkgname=lib32-${_pkgbasename}
|
||||||
pkgver=5.9
|
pkgver=6.0
|
||||||
<<<<<<< HEAD
|
pkgrel=1
|
||||||
pkgrel=3
|
|
||||||
=======
|
|
||||||
pkgrel=4
|
|
||||||
>>>>>>> 600514ebcaaf80d91da28d7572f7905dbeed7b0a
|
|
||||||
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/"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('lib32-glibc' $_pkgbasename=$pkgver)
|
depends=('lib32-gcc-libs' $_pkgbasename=$pkgver)
|
||||||
makedepends=("gcc-multilib")
|
makedepends=("gcc")
|
||||||
source=(ftp://ftp.gnu.org/pub/gnu/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
|
source=(https://ftp.gnu.org/pub/gnu/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz{,.sig})
|
||||||
md5sums=('8cb9c412e5f2d96bc6f459aa8c6282a1')
|
validpgpkeys=('C52048C0C0748FEE227D47A2702353E0F7E48EDB') # Thomas Dickey
|
||||||
|
md5sums=('ee13d052e1ead260d7c28071f46eefb1'
|
||||||
|
'SKIP')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
export CC="gcc -m32"
|
export CC="gcc -m32"
|
||||||
export CXX="g++ -m32"
|
export CXX="g++ -m32"
|
||||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||||
|
|
||||||
cd ${srcdir}/
|
cd ${_pkgbasename}-${pkgver}
|
||||||
mkdir ncurses{,w}-build
|
./configure --prefix=/usr \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
cd ${srcdir}/ncursesw-build
|
--libdir=/usr/lib32 \
|
||||||
../${_pkgbasename}-${pkgver}/configure --prefix=/usr --mandir=/usr/share/man \
|
--with-install-prefix=${pkgdir} \
|
||||||
--with-shared --with-normal --without-debug --without-ada --with-gpm=no \
|
--with-shared \
|
||||||
--with-install-prefix=${pkgdir} --enable-widec --libdir=/usr/lib32
|
--with-normal \
|
||||||
make
|
--without-debug \
|
||||||
|
--without-ada \
|
||||||
# libncurses.so.5 for external binary support
|
--enable-widec \
|
||||||
cd ${srcdir}/ncurses-build
|
--enable-pc-files \
|
||||||
# [ $CARCH = "x86_64" ] && CONFIGFLAG="--with-chtype=long"
|
--with-cxx-binding --with-cxx-shared \
|
||||||
../${_pkgbasename}-${pkgver}/configure --prefix=/usr \
|
--enable-ext-colors --enable-ext-mouse
|
||||||
--with-shared --with-normal --without-debug --without-ada --with-gpm=no \
|
|
||||||
--with-install-prefix=${pkgdir} $CONFIGFLAG --libdir=/usr/lib32
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${srcdir}/ncursesw-build
|
cd ${_pkgbasename}-${pkgver}
|
||||||
make install
|
make install
|
||||||
|
|
||||||
install -dm755 ${pkgdir}/usr/lib32
|
install -dm755 ${pkgdir}/usr/lib32
|
||||||
@ -57,17 +48,14 @@ 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
|
|
||||||
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
|
|
||||||
|
|
||||||
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
||||||
|
mkdir -p "$pkgdir/usr/share/licenses"
|
||||||
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user