iglunix/base/byacc/build.sh

41 lines
624 B
Bash
Raw Normal View History

2022-04-18 20:45:56 +00:00
pkgver=20220128
2020-12-27 17:36:57 +00:00
pkgname=byacc
2022-04-18 20:45:56 +00:00
deps="musl"
2021-09-11 08:24:20 +00:00
mkdeps="bmake"
2020-12-27 17:36:57 +00:00
bad=""
2022-04-18 20:45:56 +00:00
auto_cross
2020-12-27 17:36:57 +00:00
fetch() {
2022-04-18 20:45:56 +00:00
curl "ftp://ftp.invisible-island.net/byacc/byacc-$pkgver.tgz" -O
tar -xf $pkgname-$pkgver.tgz
2021-03-29 13:31:58 +00:00
# Merged upstream; Don't need
# cp ../reader-mesa.patch .
2020-12-27 17:36:57 +00:00
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--program-prefix=b \
2022-04-18 20:45:56 +00:00
--enable-btyacc \
--build=$HOST_TRIPLE \
--host=$TRIPLE
2021-03-29 13:31:58 +00:00
# patch -p1 < ../reader-mesa.patch
2020-12-27 17:36:57 +00:00
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
ln -sr $pkgdir/usr/bin/byacc $pkgdir/usr/bin/yacc
2020-12-27 17:36:57 +00:00
}
2021-12-26 12:40:14 +00:00
backup() {
2022-04-21 10:20:28 +00:00
return
2020-12-27 17:36:57 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}