summaryrefslogtreecommitdiffstats
path: root/main/flex/APKBUILD
blob: 6da91a6d17380747941fc1737cf56cd126ec62a9 (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 <ncop@alpinelinux.org>
pkgname=flex
pkgver=2.5.39
pkgrel=0
pkgdesc="A tool for generating text-scanning programs"
url="http://flex.sourceforge.net"
arch="all"
license="BSD and LGPLv2+"
depends='m4'
makedepends=m4
source="http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-libs $pkgname-dev"

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 \
		--disable-static \
		--enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make install DESTDIR="$pkgdir" || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="77d44c6bb8c0705e0017ab9a84a1502b  flex-2.5.39.tar.bz2"
sha256sums="add2b55f3bc38cb512b48fad7d72f43b11ef244487ff25fc00aabec1e32b617f  flex-2.5.39.tar.bz2"
sha512sums="8b1b86b81e7d231c746887c0c24fd1004f3f7598af4e41408667f609918a9994721b61d666a1e184822409de329323b829193a4a8dcdf12ce9313d0fe37cbbc1  flex-2.5.39.tar.bz2"