1 # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: judd <jvinet@zeroflux.org>
8 pkgdesc="A tool for generating text-scanning programs"
10 url="https://github.com/westes/flex"
13 depends=('glibc' 'm4' 'sh')
14 makedepends=('help2man')
15 source=("https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz"{,.sig}
17 md5sums=('2882e3179748cc9f9c23ec593d6adc8d'
19 '0a8e8242b37c57b0bc0c6f673bceb5b7')
20 validpgpkeys=('56C67868E93390AA1039AD1CE4B29C8D64885307') # Will Estes
24 patch -p1 -i "$srcdir"/flex-pie.patch
30 ./configure --prefix=/usr
37 # cxx_restart fails - https://github.com/westes/flex/issues/98
44 make DESTDIR="$pkgdir" install
45 ln -s flex "${pkgdir}/usr/bin/lex"
47 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/license.txt"