iglunix/pkgs/byacc/build.sh

41 lines
690 B
Bash
Raw Normal View History

2021-03-29 13:31:58 +00:00
pkgver=20210328
2020-12-27 17:36:57 +00:00
pkgname=byacc
2021-01-31 11:09:14 +00:00
deps="musl"
2020-12-27 17:36:57 +00:00
bad=""
ext="doc"
fetch() {
curl https://invisible-island.net/datafiles/release/byacc.tar.gz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
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 \
--enable-btyacc
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
rm -r $pkgdir/usr/share
2020-12-27 17:36:57 +00:00
}
package_doc() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
2020-12-27 17:36:57 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}