#!/bin/bash # flex # # Douglas Thrift # # $Id$ name=flex version=2.5.33 revision=0 categories=(base textproc) description='Lexical analyser generator' url='http://flex.sourceforge.net/' depends=('base/glibc') sources=(`site_sourceforge $name-$version.tar.bz2` flex.patch) function build() { gnu_patch flex.patch || return $? gnu_configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man || return $? for file in flex++ lex lex++; do ln -v $package/usr/bin/flex $package/usr/bin/$file || return $? ln -sv flex.1 $package/usr/share/man/man1/$file.1 || return $? done ln -sv libfl.a $package/usr/lib/libl.a }