pkgname=flex
pkgver=2.6.4
pkgrel=1
arch=('armv7h' 'aarch64')
license=('unknown')
source=("$pkgname-$pkgver.tar.gz")
depends=(glibc)
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr \
--docdir=/usr/share/doc/flex-2.6.4 \
--disable-static
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
ln -sv flex "$pkgdir"/usr/bin/lex
ln -sv flex.1 "$pkgdir"/usr/share/man/man1/lex.1
}
sha256sums=('e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995')