aboutsummaryrefslogtreecommitdiffstats
path: root/main/flex/APKBUILD
blob: df31897a4e0692a9d559654af8f5c0cd2c8ea669 (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.1
pkgrel=0
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"
source="https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.xz"
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="cd3c86290fc2676a641aefafeb10848a  flex-2.6.1.tar.xz"
sha256sums="2c7a412c1640e094cb058d9b2fe39d450186e09574bebb7aa28f783e3799103f  flex-2.6.1.tar.xz"
sha512sums="1e35d0447f59139b98ede085d1a603d4f61cf8bc11cf2e291a3f492a05c60ee61535481b878585cd6843cd9b3c7952c834adfa78a6a71c64802e7b3069dec9d1  flex-2.6.1.tar.xz"