core/flex/PKGBUILD

41 lines
844 B
Bash
Raw Normal View History

2014-11-27 04:13:50 +08:00
# Maintainer: AlmAck
2010-03-13 23:25:19 +08:00
pkgname=flex
2016-10-03 01:00:46 +08:00
pkgver=2.6.1
2013-05-08 02:16:39 +08:00
pkgrel=1
2010-03-13 23:25:19 +08:00
pkgdesc="A tool for generating text-scanning programs"
2014-11-27 04:13:50 +08:00
arch=('x86_64')
2010-03-13 23:25:19 +08:00
url="http://flex.sourceforge.net"
license=('custom')
groups=('base-devel')
depends=('glibc' 'm4' 'sh')
install=flex.install
2016-10-03 01:00:46 +08:00
source=(https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.xz)
md5sums=('cd3c86290fc2676a641aefafeb10848a')
2010-03-13 23:25:19 +08:00
build() {
2013-05-08 02:16:39 +08:00
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr
make
}
check() {
cd $srcdir/$pkgname-$pkgver
2010-03-13 23:25:19 +08:00
2013-05-08 02:16:39 +08:00
# these tests used features removed in bison-2.6
sed -i -e '/test-bison-yylloc/d' -e '/test-bison-yylval/d' tests/Makefile.in
make check
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
2014-11-27 04:13:50 +08:00
ln -s flex ${pkgdir}/usr/bin/lex
2010-03-13 23:25:19 +08:00
install -Dm644 COPYING \
2013-05-08 02:16:39 +08:00
$pkgdir/usr/share/licenses/$pkgname/license.txt
2010-03-13 23:25:19 +08:00
}
2013-05-08 02:16:39 +08:00