1 # Maintainer: Bill Fraser <wfraser@codewise.org>
3 # From flex's PKGBUILD:
4 # Maintainer: Allan McRae <allan@archlinux.org>
5 # Contributor: judd <jvinet@zeroflux.org>
11 pkgdesc="A tool for generating text-scanning programs"
13 url="http://flex.sourceforge.net"
16 depends=('lib32-glibc' 'm4' 'sh' $_pkgbasename)
17 source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2
18 flex-2.5.35-gcc44.patch
19 flex-2.5.35-hardening.patch
20 flex-2.5.35-missing-prototypes.patch
21 flex-2.5.35-sign.patch
23 md5sums=('10714e50cea54dc7a227e3eddcd44d57'
24 'e4444ef5c07db71a43280be74139bdea'
25 'de952b3ed7cc074bc8c3e6ab73634048'
26 '6b83f56b1b654c6a321cdc530a3ec68d'
27 'd87fd9e9762ba7e230d516bdcf1c8c6f'
28 'f725259ec23a9e87ee29e2ef82eda9a5')
34 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
36 cd $srcdir/$_pkgbasename-$pkgver
38 patch -Np1 -i $srcdir/flex-2.5.35-gcc44.patch
39 patch -Np1 -i $srcdir/flex-2.5.35-hardening.patch
40 patch -Np1 -i $srcdir/flex-2.5.35-missing-prototypes.patch
41 patch -Np1 -i $srcdir/flex-2.5.35-sign.patch
43 ./configure --prefix=/usr --libdir=/usr/lib32 \
44 --mandir=/usr/share/man --infodir=/usr/share/info
49 cd $srcdir/$_pkgbasename-$pkgver
54 cd $srcdir/$_pkgbasename-$pkgver
56 make prefix=$pkgdir/usr \
57 mandir=$pkgdir/usr/share/man \
58 infodir=$pkgdir/usr/share/info \
59 libdir=$pkgdir/usr/lib32 \
62 rm -rf "${pkgdir}"/usr/{include,share,bin}
64 mkdir -p $pkgdir/usr/share/licenses
65 ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"