blob: df37cb06558afbb2c5f0d55e2c1627cf850365a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=flex
pkgver=2.6.4
pkgrel=1
pkgdesc="A tool for generating text-scanning programs"
arch=('x86_64' 'ppc64le')
url="https://github.com/westes/flex"
license=('custom')
groups=('base-devel')
depends=('glibc' 'm4' 'sh')
makedepends=('help2man')
source=("https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz")
md5sums=('2882e3179748cc9f9c23ec593d6adc8d')
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr
make
}
check() {
cd "$pkgname-$pkgver"
# cxx_restart fails - https://github.com/westes/flex/issues/98
make -k check || true
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
ln -s flex "${pkgdir}/usr/bin/lex"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/license.txt"
}
|