remove pkgdir usage in build function

ledoian
Allan McRae 12 years ago
parent f4f2cc0ad6
commit ccd02aa8c7

@ -20,23 +20,21 @@ build() {
cd ${srcdir}/ncursesw-build cd ${srcdir}/ncursesw-build
../${pkgname}-${pkgver}/configure --prefix=/usr --mandir=/usr/share/man \ ../${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 \ --enable-widec --enable-pc-files
--enable-pc-files # add --enable-ext-colors and --enable-ext-mouse with next soname bump
# add --enable-ext-colors with next soname bump
make make
# libncurses.so.5 for external binary support # libncurses.so.5 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 \
--with-shared --with-normal --without-debug --without-ada \ --with-shared --with-normal --without-debug --without-ada $CONFIGFLAG
--with-install-prefix=${pkgdir} $CONFIGFLAG
make make
} }
package() { package() {
cd ${srcdir}/ncursesw-build cd ${srcdir}/ncursesw-build
make 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

Loading…
Cancel
Save