4e11f4d322
Closes #4606. Closes #4632. Closes #4678. Thanks to all contributors.
37 lines
955 B
Bash
37 lines
955 B
Bash
# Template file for 'flex'
|
|
pkgname=flex
|
|
version=2.6.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
# YES REALLY! WE DONT WANT BINS LINKED TO LIBFL!
|
|
configure_args="--disable-shared"
|
|
hostmakedepends="help2man bison"
|
|
makedepends="bison"
|
|
depends="bison libfl-devel-${version}_${revision}"
|
|
short_desc="The Fast Lexical Analyzer"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://flex.sourceforge.net"
|
|
license="BSD"
|
|
distfiles="https://github.com/westes/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=2c7a412c1640e094cb058d9b2fe39d450186e09574bebb7aa28f783e3799103f
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" flex"
|
|
post_configure() {
|
|
# Use host flex
|
|
sed -i 's,$(top_builddir)/src/stage1flex$(EXEEXT),flex,' \
|
|
src/Makefile
|
|
}
|
|
fi
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
libfl-devel_package() {
|
|
replaces="libfl>=0"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|