summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a28c83c164fdae02625bc8c86d1d51abaf1a4486 (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
# $Id$
# Maintainer: Jason Edson <jaysonedson@gmail.com>
# Contributor: judd <jvinet@zeroflux.org>

pkgname=flex-android
pkgver=9999
pkgrel=3
pkgdesc="Flex for building Android. 2.6 doesn't play well when building."
arch=('i686' 'x86_64')
url="http://flex.sourceforge.net"
license=('custom')
depends=('glibc' 'm4' 'sh')
provides=(flex)
conflicts=(flex)
install=flex.install
source=(http://downloads.sourceforge.net/sourceforge/flex/flex-2.5.39.tar.xz)
md5sums=('477679c37ff8b28248a9b05f1da29a82')

build() {
  cd $srcdir/flex-2.5.39
  ./configure --prefix=/usr
  make
}

check() {
  cd $srcdir/flex-2.5.39

  # these tests are incompatible with latest bison
  sed -i -e '/test-bison-yylloc/d' -e '/test-bison-yylval/d' tests/Makefile.in

  make check
}

package() {
  cd $srcdir/flex-2.5.39

  make DESTDIR=$pkgdir install
  ln -s flex ${pkgdir}/usr/bin/lex

  install -Dm644 COPYING \
  	$pkgdir/usr/share/licenses/flex-2.5.39/license.txt
}