|
|
@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
pkgname=ncurses
|
|
|
|
pkgname=ncurses
|
|
|
|
pkgver=5.7
|
|
|
|
pkgver=5.7
|
|
|
|
pkgrel=2.1
|
|
|
|
pkgrel=3
|
|
|
|
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/"
|
|
|
@ -13,12 +13,26 @@ source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
|
|
|
|
md5sums=('cce05daf61a64501ef6cd8da1f727ec6')
|
|
|
|
md5sums=('cce05daf61a64501ef6cd8da1f727ec6')
|
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
cd ${srcdir}/
|
|
|
|
|
|
|
|
mkdir ncurses{,w}-build
|
|
|
|
|
|
|
|
|
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
|
|
|
cd ${srcdir}/ncursesw-build
|
|
|
|
|
|
|
|
../${pkgname}-${pkgver}/configure --prefix=/usr --mandir=/usr/share/man \
|
|
|
|
--with-shared --with-normal --without-debug --without-ada \
|
|
|
|
--with-shared --with-normal --without-debug --without-ada \
|
|
|
|
--with-install-prefix=${pkgdir} --enable-widec
|
|
|
|
--with-install-prefix=${pkgdir} --enable-widec
|
|
|
|
make || return 1
|
|
|
|
make || return 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# libncurses.so.5 for external binary support
|
|
|
|
|
|
|
|
cd ${srcdir}/ncurses-build
|
|
|
|
|
|
|
|
[ $CARCH = "x86_64" ] && CONFIGFLAG="--with-chtype=long"
|
|
|
|
|
|
|
|
../${pkgname}-${pkgver}/configure --prefix=/usr \
|
|
|
|
|
|
|
|
--with-shared --with-normal --without-debug --without-ada \
|
|
|
|
|
|
|
|
--with-install-prefix=${pkgdir} $CONFIGFLAG
|
|
|
|
|
|
|
|
make || return 1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
|
|
|
cd ${srcdir}/ncursesw-build
|
|
|
|
make install
|
|
|
|
make install
|
|
|
|
|
|
|
|
|
|
|
|
# move libraries needed for boot to /lib (we call tput in initscripts)
|
|
|
|
# move libraries needed for boot to /lib (we call tput in initscripts)
|
|
|
@ -45,13 +59,8 @@ build() {
|
|
|
|
ln -sf libncursesw.a ${pkgdir}/usr/lib/libcursesw.a
|
|
|
|
ln -sf libncursesw.a ${pkgdir}/usr/lib/libcursesw.a
|
|
|
|
ln -sf libncurses.a ${pkgdir}/usr/lib/libcurses.a
|
|
|
|
ln -sf libncurses.a ${pkgdir}/usr/lib/libcurses.a
|
|
|
|
|
|
|
|
|
|
|
|
# Install libncurses.so.5 for external binary support
|
|
|
|
# non-widec compatibility library
|
|
|
|
[ $CARCH = "x86_64" ] && CONFIGFLAG="--with-chtype=long"
|
|
|
|
cd ${srcdir}/ncurses-build
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
|
|
|
--with-shared --with-normal --without-debug --without-ada \
|
|
|
|
|
|
|
|
--with-install-prefix=${pkgdir} $CONFIGFLAG
|
|
|
|
|
|
|
|
make || return 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -Dm755 lib/libncurses.so.${pkgver} ${pkgdir}/usr/lib/libncurses.so.${pkgver}
|
|
|
|
install -Dm755 lib/libncurses.so.${pkgver} ${pkgdir}/usr/lib/libncurses.so.${pkgver}
|
|
|
|
ln -sf libncurses.so.${pkgver} ${pkgdir}/usr/lib/libncurses.so.5
|
|
|
|
ln -sf libncurses.so.${pkgver} ${pkgdir}/usr/lib/libncurses.so.5
|
|
|
|
|
|
|
|
|
|
|
|