blob: cfa5dc3eabf5d792960e90385b560e84e259b3fc (
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.2
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 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="cc6d76c333db7653d5caf423a3335239 flex-2.6.2.tar.gz"
sha256sums="9a01437a1155c799b7dc2508620564ef806ba66250c36bf5f9034b1c207cb2c9 flex-2.6.2.tar.gz"
sha512sums="481fe3f1c370fe04d5a605a826c53dd0afa5b6ea655f0d14fa9bb9cb498c016f68cef8fea806458f07baa7ae5bc1ac729be427cb4e0cc39ce744a809ef6442b3 flex-2.6.2.tar.gz"
|