diff options
author | Lukc <lukc@upyum.com> | 2010-12-12 10:46:32 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-12 10:46:32 +0100 |
commit | a765b0a5870171a1f04d3401a948cc5738484ac1 (patch) | |
tree | 1b448f4a3e8f799956365fc0ca8b0e36c249a47c /ncurses/Pkgfile | |
parent | 4654d53e92e0a6738b09d8f9db368764bb4d5ec5 (diff) | |
download | base-a765b0a5870171a1f04d3401a948cc5738484ac1.tar.gz base-a765b0a5870171a1f04d3401a948cc5738484ac1.tar.bz2 base-a765b0a5870171a1f04d3401a948cc5738484ac1.tar.xz base-a765b0a5870171a1f04d3401a948cc5738484ac1.zip |
Recette de NCurses mise à jour.
Diffstat (limited to 'ncurses/Pkgfile')
-rw-r--r-- | ncurses/Pkgfile | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/ncurses/Pkgfile b/ncurses/Pkgfile index ffc2a4d..df88789 100644 --- a/ncurses/Pkgfile +++ b/ncurses/Pkgfile @@ -1,28 +1,38 @@ -description="A System V Release 4.0 curses emulation library" -packager="" -maintainer="CRUX System Team, core-ports at crux dot nu" +description="A System V Release 4.0 curses emulation library." +packager="CRUX System Team <core-ports AT crux DOT nu>" +maintainer="Lukc <lukc AT upyum DOT com>" url="http://www.gnu.org/software/ncurses/ncurses.html" depends=() name=ncurses version=5.7 release=1 -source=(http://ftp.gnu.org/gnu/ncurses/ncurses-5.7.tar.gz) +source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz) build () { - cd $name-$version; - local OPTIONS="--with-install-prefix=$PKG --prefix=/usr --with-normal --with-shared --without-debug --without-ada -"; - ./configure $OPTIONS; - make; - make install; - make distclean; - ./configure $OPTIONS --enable-widec; - make; - make install; - mkdir $PKG/lib; - for i in w ''; - do - mv $PKG/usr/lib/libncurses$i.so.* $PKG/lib && ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so && ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so && ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so.5; - done + cd $name-$version; + local opts=( + --with-install-prefix=$PKG + --prefix=$prefix + --with-normal + --with-shared + --without-debug + $(use_with ada) + ); + ./configure ${opts[@]}; + make; + make install; + make distclean; + ./configure ${opts[@]} --enable-widec; + make; + make install; + # In my mind, it’s correct to install a such important library in /lib. + mkdir $PKG/lib; + for i in w ''; + do + mv $PKG/usr/lib/libncurses$i.so.* $PKG/lib && \ + ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so && \ + ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so && \ + ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so.5; + done } |