aboutsummaryrefslogtreecommitdiffstats
path: root/main/flex/APKBUILD
blob: d06e87424ae8894fc6f0d581350b7709cbb22edf (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
# Maintainer: Natanael Copa <ncop@alpinelinux.org>
pkgname=flex
pkgver=2.5.37
pkgrel=0
pkgdesc="A tool for generating text-scanning programs"
url="http://flex.sourceforge.net"
arch="all"
license=custom
depends='m4'
makedepends=m4
source="http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2"
subpackages="$pkgname-doc"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	update_config_sub || return 1
}

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

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

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make install DESTDIR="$pkgdir"
}

md5sums="c75940e1fc25108f2a7b3ef42abdae06  flex-2.5.37.tar.bz2"