From 3c2f4acc23b91861c2842b737559270f738f374e Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sun, 27 Dec 2020 17:36:57 +0000 Subject: [PATCH] Added bmake and byacc --- pkgs/bmake/build.sh | 36 ++++++++++++++++++++++++++++++++++++ pkgs/bmake/no-test.patch | 11 +++++++++++ pkgs/byacc/build.sh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 pkgs/bmake/build.sh create mode 100644 pkgs/bmake/no-test.patch create mode 100644 pkgs/byacc/build.sh diff --git a/pkgs/bmake/build.sh b/pkgs/bmake/build.sh new file mode 100644 index 0000000..fee5e6f --- /dev/null +++ b/pkgs/bmake/build.sh @@ -0,0 +1,36 @@ +pkgver=20201212 +pkgname=bmake +bad="" +ext="doc" + +fetch() { + curl http://www.crufty.net/ftp/pub/sjg/bmake-20201212.tar.gz -o $pkgname-$pkgver.tar.gz + tar -xf $pkgname-$pkgver.tar.gz + mv $pkgname $pkgname-$pkgver + cd $pkgname-$pkgver + patch ./boot-strap < ../../no-test.patch +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/ + sh ./make-bootstrap.sh +} + +package() { + cd $pkgname-$pkgver + ./bmake -m ./mk install DESTDIR=$pkgdir + rm -r $pkgdir/share/man +} + +package_doc() { + cd $pkgname-$pkgver + ./bmake -m ./mk install DESTDIR=$pkgdir + rm -r $pkgdir/bin + rm -r $pkgdir/share/mk +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +} diff --git a/pkgs/bmake/no-test.patch b/pkgs/bmake/no-test.patch new file mode 100644 index 0000000..1ad8ab7 --- /dev/null +++ b/pkgs/bmake/no-test.patch @@ -0,0 +1,11 @@ +--- ../bmakeb/bmake/boot-strap 2020-11-13 21:47:25.000000000 +0000 ++++ boot-strap 2020-12-27 17:26:13.126598658 +0000 +@@ -431,7 +431,7 @@ + + op_test() { + [ -x bmake ] || op_build +- Bmake test || exit 1 ++ #Bmake test || exit 1 + } + + op_clean() { diff --git a/pkgs/byacc/build.sh b/pkgs/byacc/build.sh new file mode 100644 index 0000000..3426223 --- /dev/null +++ b/pkgs/byacc/build.sh @@ -0,0 +1,32 @@ +pkgver=20200910 +pkgname=byacc +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 +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/ --enable-btyacc + make +} + +package() { + cd $pkgname-$pkgver + make install DESTDIR=$pkgdir + rm -r $pkgdir/share +} + +package_doc() { + cd $pkgname-$pkgver + make install DESTDIR=$pkgdir + rm -r $pkgdir/bin +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +}