summaryrefslogtreecommitdiffstats
path: root/flex/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.servegame.org>2012-08-05 23:32:41 +0200
committerpiernov <piernov@piernov.servegame.org>2012-08-05 23:32:45 +0200
commit10e4b18ff1c3d6fac5dee398fcc722855153dd80 (patch)
treee76a578f76a378fb070813b46bd50f71091e9fed /flex/Pkgfile
parentedac5b197d6c28561e17f3a12e2d88812466eb96 (diff)
downloadnutyx-pakxe-10e4b18ff1c3d6fac5dee398fcc722855153dd80.tar.gz
nutyx-pakxe-10e4b18ff1c3d6fac5dee398fcc722855153dd80.tar.bz2
nutyx-pakxe-10e4b18ff1c3d6fac5dee398fcc722855153dd80.tar.xz
nutyx-pakxe-10e4b18ff1c3d6fac5dee398fcc722855153dd80.zip
flex 2.5.37-1 màj port
Diffstat (limited to 'flex/Pkgfile')
-rwxr-xr-xflex/Pkgfile35
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
}