iglunix/pkgs/byacc/build.sh

40 lines
657 B
Bash
Raw Normal View History

2021-01-27 22:24:11 +00:00
pkgver=20210109
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-01-27 22:24:11 +00:00
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-01-27 22:24:11 +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
}