diff options
Diffstat (limited to 'flex/Pkgfile')
-rwxr-xr-x | flex/Pkgfile | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/flex/Pkgfile b/flex/Pkgfile index 634234f61..a87cf97a0 100755 --- a/flex/Pkgfile +++ b/flex/Pkgfile @@ -5,29 +5,22 @@ # Depends on: name=flex -version=2.5.35 +version=2.5.37 release=1 -source=( http://prdownloads.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2\ - http://www.linuxfromscratch.org/patches/lfs/development/flex-2.5.35-gcc44-1.patch) +source=(http://prdownloads.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2 + lex.sh) + build() { -cd $name-$version -patch -Np1 -i ../flex-2.5.35-gcc44-1.patch -./configure --prefix=/usr \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info -make -make DESTDIR=$PKG install -ln -sv libfl.a $PKG/usr/lib/libl.a -cat > $PKG/usr/bin/lex << "EOF" -#!/bin/sh -# Begin /usr/bin/lex + cd $name-$version + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install -exec /usr/bin/flex -l "$@" + install -Dm755 ../lex.sh $PKG/usr/bin/lex -# End /usr/bin/lex -EOF -chmod -v 755 $PKG/usr/bin/lex -if [ -f $PKG/usr/share/info/dir ]; then - rm $PKG/usr/share/info/dir -fi + if [ -f $PKG/usr/share/info/dir ]; then + rm $PKG/usr/share/info/dir + fi } |