1 # Maintainer: Nicky726 (Nicky726 <at> gmail <dot> com)
2 # Contributor: Sergej Pupykin (pupykin <dot> s+arch <at> gmail <dot> com)
4 # needed to build checkpolicy tool. current flex have some problems...
10 pkgdesc="A tool for generating text-scanning programs"
11 groups=('selinux' 'selinux-system-utilities')
12 arch=('i686' 'x86_64')
13 url="http://flex.sourceforge.net"
15 depends=('glibc' 'bash' 'bison')
16 conflicts=("${_origname}")
17 provides=("${_origname}=2.5.4")
19 source=(http://downloads.sourceforge.net/sourceforge/${_origname}/${_origname}-${pkgver}.tar.bz2 \
20 ${_origname}-arch.patch.gz)
21 md5sums=('c0b8e3dd63bce3f4a6543d845e17ce9a'
22 '03f577be43792ff3df9c3ce5215b8e92')
25 cd "${srcdir}/${_origname}-2.5.4"
26 patch -Np1 <../${_origname}-arch.patch
27 ./configure --prefix=/usr
32 cd "${srcdir}/${_origname}-2.5.4"
33 make prefix=${pkgdir}/usr install
34 cat > ${pkgdir}/usr/bin/lex << "EOF"
38 exec /usr/bin/flex -l "$@"
41 chmod 755 "${pkgdir}/usr/bin/lex"
43 install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/license.txt"