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
|
2021-01-06 12:48:06 +00:00
|
|
|
./configure \
|
2021-01-12 11:06:46 +00:00
|
|
|
--prefix=/usr \
|
2021-01-06 12:48:06 +00:00
|
|
|
--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
|
2021-01-12 11:06:46 +00:00
|
|
|
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
|
2021-01-12 11:06:46 +00:00
|
|
|
rm -r $pkgdir/usr/bin
|
2020-12-27 17:36:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|