iglunix/base/flex/build.sh

30 lines
475 B
Bash
Raw Normal View History

2021-06-26 14:42:55 +00:00
pkgname=flex
pkgver=2.6.4
fetch() {
curl -L "https://github.com/westes/flex/releases/download/v2.6.4/flex-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$TRIPLE \
--host=$TRIPLE
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
2021-12-26 12:40:14 +00:00
ln -sr $pkgdir/usr/bin/flex $pkgdir/usr/bin/lex
2021-06-26 14:42:55 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}