aports/main/flex/APKBUILD

47 lines
1 KiB
Text
Raw Permalink Normal View History

2016-01-23 16:25:05 +00:00
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Arch3y <arch3y@riseup.net>
2008-11-06 21:31:51 +00:00
pkgname=flex
pkgver=2.6.4
2023-05-15 03:12:07 +00:00
pkgrel=6
2008-11-06 21:31:51 +00:00
pkgdesc="A tool for generating text-scanning programs"
2016-08-08 18:47:15 +00:00
url="https://github.com/westes/flex"
arch="all"
2023-01-30 19:13:46 +01:00
license="BSD-2-Clause"
2016-10-25 21:22:29 +02:00
depends="m4"
depends_dev="flex"
2019-05-25 21:37:35 -03:00
makedepends="$depends_dev bison help2man"
2014-03-27 19:59:47 +00:00
subpackages="$pkgname-doc $pkgname-libs $pkgname-dev"
source="https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz"
2008-11-06 21:31:51 +00:00
prepare() {
default_prepare
update_config_sub
}
2008-11-06 21:31:51 +00:00
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
2008-11-06 21:31:51 +00:00
--mandir=/usr/share/man \
--infodir=/usr/share/info \
2014-03-27 19:59:47 +00:00
--disable-static \
2017-06-24 09:45:01 +00:00
--enable-shared \
ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes
make
}
check() {
2019-05-25 21:37:35 -03:00
make check
2012-07-24 08:25:55 +00:00
}
package() {
make install DESTDIR="$pkgdir"
ln -s flex "$pkgdir"/usr/bin/lex
2008-11-06 21:31:51 +00:00
}
sha512sums="
e9785f3d620a204b7d20222888917dc065c2036cae28667065bf7862dfa1b25235095a12fd04efdbd09bfd17d3452e6b9ef953a8c1137862ff671c97132a082e flex-2.6.4.tar.gz
"