1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/reflex: new aport

https://invisible-island.net/reflex/
Relocalizable fast lexical scanner
This commit is contained in:
Celeste 2025-06-21 06:24:42 +00:00
parent 0eb26b70a3
commit 46a12d6609

44
testing/reflex/APKBUILD Normal file
View file

@ -0,0 +1,44 @@
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=reflex
pkgver=20241231
pkgrel=0
pkgdesc="Relocalizable fast lexical scanner"
url="https://invisible-island.net/reflex/"
arch="all"
license="BSD-3-Clause-flex"
depends="$pkgname-dev=$pkgver-r$pkgrel byacc"
makedepends="diffutils"
subpackages="$pkgname-dev $pkgname-doc"
source="https://invisible-mirror.net/archives/reflex/reflex-$pkgver.tgz"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
case "$CARCH" in
x86*|loongarch64)
make bigcheck
;;
*)
# bigcheck: unknown -C option '.'
make check
;;
esac
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
1e511a64b4a9eec1d7a987d0cb7726cc61277bcc45180d5537a0a17e67929f63547ec978b839e44e44029477b6d45bba8e3c3452c17e1cf80e3adf3dfdd12e13 reflex-20241231.tgz
"