2016-01-23 16:25:05 +00:00
|
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
2017-05-08 20:46:20 -04:00
|
|
|
# Contributor: Arch3y <arch3y@riseup.net>
|
2008-11-06 21:31:51 +00:00
|
|
|
pkgname=flex
|
2017-05-08 20:46:20 -04:00
|
|
|
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"
|
2011-01-13 06:05:19 -06:00
|
|
|
arch="all"
|
2023-01-30 19:13:46 +01:00
|
|
|
license="BSD-2-Clause"
|
2016-10-25 21:22:29 +02:00
|
|
|
depends="m4"
|
2015-06-05 13:26:13 +00:00
|
|
|
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"
|
2022-12-13 20:05:54 +01:00
|
|
|
source="https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz"
|
2008-11-06 21:31:51 +00:00
|
|
|
|
2024-03-05 07:16:46 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
update_config_sub
|
|
|
|
}
|
|
|
|
|
2008-11-06 21:31:51 +00:00
|
|
|
build() {
|
2013-07-30 08:51:11 +00:00
|
|
|
./configure \
|
|
|
|
--build=$CBUILD \
|
|
|
|
--host=$CHOST \
|
|
|
|
--prefix=/usr \
|
2008-11-06 21:31:51 +00:00
|
|
|
--mandir=/usr/share/man \
|
2013-07-30 08:51:11 +00:00
|
|
|
--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
|
2017-05-08 20:46:20 -04:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-05-25 21:37:35 -03:00
|
|
|
make check
|
2012-07-24 08:25:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-05-08 20:46:20 -04:00
|
|
|
make install DESTDIR="$pkgdir"
|
|
|
|
ln -s flex "$pkgdir"/usr/bin/lex
|
2008-11-06 21:31:51 +00:00
|
|
|
}
|
|
|
|
|
2022-05-30 10:54:07 +00:00
|
|
|
sha512sums="
|
|
|
|
e9785f3d620a204b7d20222888917dc065c2036cae28667065bf7862dfa1b25235095a12fd04efdbd09bfd17d3452e6b9ef953a8c1137862ff671c97132a082e flex-2.6.4.tar.gz
|
|
|
|
"
|