From 0cd07e3c8d1a1b42720d938374c9c6511696aa1a Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Tue, 13 Jul 2021 21:38:00 +0200 Subject: [PATCH] add flex, bison, m4 --- bison/build | 6 ++++++ bison/package | 5 +++++ flex/build | 9 +++++++++ flex/package | 5 +++++ m4/build | 9 +++++++++ m4/package | 5 +++++ 6 files changed, 39 insertions(+) create mode 100755 bison/build create mode 100755 bison/package create mode 100755 flex/build create mode 100755 flex/package create mode 100755 m4/build create mode 100755 m4/package diff --git a/bison/build b/bison/build new file mode 100755 index 0000000..43d52ce --- /dev/null +++ b/bison/build @@ -0,0 +1,6 @@ +wget https://ftp.gnu.org/gnu/bison/bison-3.7.6.tar.xz +tar -xf bison-3.7.6.tar.xz +cd bison-3.7.6 +./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.7.6 +make +make install DESTDIR="$1" diff --git a/bison/package b/bison/package new file mode 100755 index 0000000..29c7c44 --- /dev/null +++ b/bison/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="3.7.6" +pkg_config_name="bison" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/flex/build b/flex/build new file mode 100755 index 0000000..dac4763 --- /dev/null +++ b/flex/build @@ -0,0 +1,9 @@ +wget https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz +tar -xf flex-2.6.4.tar.gz +cd flex-2.6.4 +sed -i "/math.h/a #include " src/flexdef.h +HELP2MAN=/tools/bin/true ./configure --prefix=/usr --docdir=/usr/share/doc/flex-2.6.4 +make +make check +make install DESTDIR="$1" +ln -sv flex /usr/bin/lex diff --git a/flex/package b/flex/package new file mode 100755 index 0000000..08fa846 --- /dev/null +++ b/flex/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="2.6.4" +pkg_config_name="flex" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/m4/build b/m4/build new file mode 100755 index 0000000..b4f1b63 --- /dev/null +++ b/m4/build @@ -0,0 +1,9 @@ +wget https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz +tar -xf m4-1.4.19.tar.xz +cd m4-1.4.19 +sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c +echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h +./configure --prefix=/usr --build=$(build-aux/config.guess) +make +make install DESTDIR="$1" + diff --git a/m4/package b/m4/package new file mode 100755 index 0000000..6aafe26 --- /dev/null +++ b/m4/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.4.18" +pkg_config_name="m4" +pkg_config_makedepends="" +pkg_config_depends=""