moving packages
This commit is contained in:
parent
d2235a7fc5
commit
7488ce0293
48 changed files with 0 additions and 0 deletions
40
base/byacc/build.sh
Normal file
40
base/byacc/build.sh
Normal 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
|
||||
}
|
11
base/byacc/reader-mesa.patch
Normal file
11
base/byacc/reader-mesa.patch
Normal 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:
|
Loading…
Add table
Add a link
Reference in a new issue