blob: 5c80aa71967453da014aecab3a9f424653b19d3c (
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
39
40
41
42
43
44
45
|
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=flex-git
pkgver=2.6.4.64.gc984ab0
pkgrel=1
pkgdesc="A tool for generating text-scanning programs - from git"
arch=('i686' 'x86_64')
url="https://github.com/westes/flex"
license=('custom')
conflicts=('flex')
provides=('flex')
depends=('glibc' 'm4' 'sh')
makedepends=('help2man' 'git')
source=('git+https://github.com/westes/flex.git')
md5sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
echo $(git describe --tags|tr - .|cut -c2-)
}
build() {
cd ${pkgname%-git}
./autogen.sh
./configure --prefix=/usr
make
}
check() {
cd ${pkgname%-git}
make check
}
package() {
cd ${pkgname%-git}
make DESTDIR=$pkgdir install
ln -s flex ${pkgdir}/usr/bin/lex
install -Dm644 COPYING \
$pkgdir/usr/share/licenses/$pkgname/license.txt
}
|