moving packages

This commit is contained in:
Ella-0 2021-07-31 12:55:09 +00:00
parent d2235a7fc5
commit 7488ce0293
48 changed files with 0 additions and 0 deletions

40
base/byacc/build.sh Normal file
View file

@ -0,0 +1,40 @@
pkgver=20210328
pkgname=byacc
deps="musl"
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
# Merged upstream; Don't need
# cp ../reader-mesa.patch .
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--program-prefix=b \
--enable-btyacc
# patch -p1 < ../reader-mesa.patch
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
ln -sr $pkgdir/usr/bin/byacc $pkgdir/usr/bin/yacc
rm -r $pkgdir/usr/share
}
package_doc() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -0,0 +1,11 @@
--- a/reader.c
+++ b/reader.c
@@ -902,7 +902,7 @@
if (!lflag)
fprintf(text_file, line_format, lineno, input_file_name);
- puts_both("typedef union");
+ puts_both("typedef union YYSTYPE");
depth = 0;
loop: