summaryrefslogtreecommitdiffstats
path: root/flex/Pkgfile
blob: 8bad4f9547d4bf55843c5b9a8379e3cf95374c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
description="Fast Lexical Analyzer Generator"
packager=""
maintainer="CRUX System Team, core-ports at crux dot nu"
url="http://flex.sourceforge.net/"
depends=()

name=flex
version=2.5.35
release=2
source=(http://downloads.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.bz2 flex-2.5.35-gcc44-1.patch)
build () 
{ 
    cd $name-$version;
    patch -p1 -i $SRC/$name-$version-gcc44-1.patch;
    ./configure --prefix=/usr --disable-nls;
    make;
    make DESTDIR=$PKG install;
    ln -sf flex $PKG/usr/bin/lex;
    ln -sf flex.1.gz $PKG/usr/man/man1/lex.1.gz;
    rm -rf $PKG/usr/info
}