Mercurial > vanilla
diff gnu/ncurses/ncurses.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
line wrap: on
line diff
--- a/gnu/ncurses/ncurses.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/gnu/ncurses/ncurses.sh Wed Oct 27 11:32:16 2021 +0200 @@ -29,41 +29,44 @@ : ${LDFLAGS:=} : ${LIBS:=} -rm -rf $PKGNAME-$PKGVERSION -tar xvf $PKGNAME-$PKGVERSION.tar.gz -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.gz + cd $PKGNAME-$PKGVERSION -# --enable-overwrite: required when prefix is not /usr. -# --enable-pc-files: lots of packages require this. -# --enable-widec: some packages require this it (e.g. neomutt). -# --with-manpage-format=normal: vpk compress by itself. -CC="$CC" \ -CFLAGS="$CFLAGS" \ -LDFLAGS="$LDFLAGS" \ -LIBS="$LIBS" \ -./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --enable-overwrite \ - --enable-pc-files \ - --enable-widec \ - --prefix=/usr \ - --with-manpage-format=normal \ - --with-pkg-config-libdir=/lib/pkgconfig \ - --with-shared \ - --without-debug -make -make install DESTDIR=$DESTDIR + # --enable-overwrite: required when prefix is not /usr. + # --enable-pc-files: lots of packages require this. + # --enable-widec: some packages require this it (e.g. neomutt). + # --with-manpage-format=normal: vpk compress by itself. + CC="$CC" \ + CFLAGS="$CFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --enable-overwrite \ + --enable-pc-files \ + --enable-widec \ + --prefix= \ + --with-manpage-format=normal \ + --with-pkg-config-libdir=/lib/pkgconfig \ + --with-shared \ + --without-debug + make + make install DESTDIR=$DESTDIR -# For each wide library, create a input link. -for lib in ncurses ncurses++ form panel menu; do - echo "INPUT(-l${lib}w)" > $DESTDIR/lib/lib${lib}.so - ln -s ${lib}w.pc $DESTDIR/lib/pkgconfig/${lib}.pc -done + # For each wide library, create a input link. + for lib in ncurses ncurses++ form panel menu; do + echo "INPUT(-l${lib}w)" > $DESTDIR/lib/lib${lib}.so + ln -s ${lib}w.pc $DESTDIR/lib/pkgconfig/${lib}.pc + done -# Create a legacy libcurses library. -echo "INPUT(-lncursesw)" > $DESTDIR/lib/libcursesw.so -ln -s libncurses.so $DESTDIR/lib/libcurses.so + # Create a legacy libcurses library. + echo "INPUT(-lncursesw)" > $DESTDIR/lib/libcursesw.so + ln -s libncurses.so $DESTDIR/lib/libcurses.so -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}