34 lines
760 B
Text
34 lines
760 B
Text
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
app=flex
|
|
version=2.6.4
|
|
build=3sml
|
|
homepage="https://github.com/westes/flex"
|
|
download="https://github.com/westes/flex/archive/refs/tags/v$version.tar.gz"
|
|
desc="fast lexical analyzer generator"
|
|
requires="m4"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf $app-$version
|
|
|
|
tar xf $srcdir/$app-$version.tar.?z*
|
|
cd $app-$version
|
|
fixbuilddirpermissions
|
|
}
|
|
|
|
build() {
|
|
CPPFLAGS="$CFLAGS -DSTDC_HEADERS" \
|
|
./configure \
|
|
--prefix="" \
|
|
--docdir="/share/doc/$app-$version" \
|
|
--disable-static
|
|
|
|
make
|
|
make install DESTDIR=$pkg
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
sha512sums="
|
|
6564218510945b678bb61a1375ccaa4c254aa43fc52f0c4e3d8b784f551bca82bb8ab1889bde522c3da9b04da99904d17420ef8615862bae65b925770fae2517 flex-2.6.4.tar.lz
|
|
"
|