aboutsummaryrefslogtreecommitdiffstats
path: root/main/flex/APKBUILD
blob: 4b8c48a68d981a5fbd049f46c136151218f8a9c4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flex
pkgver=2.6.0
pkgrel=0
pkgdesc="A tool for generating text-scanning programs"
url="http://flex.sourceforge.net"
arch="all"
license="BSD and LGPLv2+"
depends='m4'
depends_dev="flex"
makedepends="$depends_dev m4 bison"
source="http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-libs $pkgname-dev"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
}

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-static \
		--enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make install DESTDIR="$pkgdir" || return 1
	ln -s flex "$pkgdir"/usr/bin/lex || return 1
}

md5sums="266270f13c48ed043d95648075084d59  flex-2.6.0.tar.bz2"
sha256sums="24e611ef5a4703a191012f80c1027dc9d12555183ce0ecd46f3636e587e9b8e9  flex-2.6.0.tar.bz2"
sha512sums="333e968ec46528852427ca2da00232ea85997ad9acd87766710cb78270b1dcc924746db0dd57706e7eac55e5f33f087549d5ce69ceeef88071d1f9c4a043134a  flex-2.6.0.tar.bz2"