aboutsummaryrefslogtreecommitdiffstats
path: root/main/flex/APKBUILD
blob: e32dd1ee768acc7fcee5111b7adf05561c8e9687 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flex
pkgver=2.6.1
pkgrel=1
pkgdesc="A tool for generating text-scanning programs"
url="https://github.com/westes/flex"
arch="all"
license="BSD and LGPLv2+"
depends="m4"
depends_dev="flex"
makedepends="$depends_dev m4 bison help2man"
subpackages="$pkgname-doc $pkgname-libs $pkgname-dev"
source="https://github.com/westes/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./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 "$builddir"
	make install DESTDIR="$pkgdir" || return 1
	ln -s flex "$pkgdir"/usr/bin/lex || return 1
}

md5sums="05bcd8fb629e0ae130311e8a6106fa82  flex-2.6.1.tar.gz"
sha256sums="3c43f9e658e45e8aae3cf69fa11803d60550865f023852830d557c5f0623c13b  flex-2.6.1.tar.gz"
sha512sums="635b89a7ff6286f49474f2cd3afcdfb57bddfe5d0fffa4f3136a6631fe67eb88c0d0f3adba1f13ec6f2094c8ae86435d33c77f08769be101a4554f802042b833  flex-2.6.1.tar.gz"