From 0cd07e3c8d1a1b42720d938374c9c6511696aa1a Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Tue, 13 Jul 2021 21:38:00 +0200 Subject: [PATCH 1/4] 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="" -- 2.30.2 From 5cb25f859d9a75d0d1420d13a9da60ce20813164 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Tue, 13 Jul 2021 22:13:12 +0200 Subject: [PATCH 2/4] update ufetch --- ufetch/payload/usr/bin/patch | 8 -------- ufetch/payload/usr/bin/ufetch | 4 ++-- ufetch/postdeploy | 1 - 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 ufetch/payload/usr/bin/patch delete mode 100755 ufetch/postdeploy diff --git a/ufetch/payload/usr/bin/patch b/ufetch/payload/usr/bin/patch deleted file mode 100644 index 2b2f7f8..0000000 --- a/ufetch/payload/usr/bin/patch +++ /dev/null @@ -1,8 +0,0 @@ -9c9 -< os='Linux' # I'd just like to interject for a moment... ---- -> os='Alnux' # I'd just like to interject for a moment... Alnux is a linux distro that is closed down and tightly controlled... -12c12 -< packages='unknown' ---- -> packages="$(aps list | wc -l)" diff --git a/ufetch/payload/usr/bin/ufetch b/ufetch/payload/usr/bin/ufetch index dab7533..8f6284b 100755 --- a/ufetch/payload/usr/bin/ufetch +++ b/ufetch/payload/usr/bin/ufetch @@ -6,10 +6,10 @@ # user is already defined host="$(hostname)" -os='Linux' # I'd just like to interject for a moment... +os='Alnux' # I'd just like to interject for a moment... kernel="$(uname -sr)" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" -packages='unknown' +packages='$(aps list | wc -l)' shell="$(basename "${SHELL}")" ## UI DETECTION diff --git a/ufetch/postdeploy b/ufetch/postdeploy deleted file mode 100755 index 0a6937b..0000000 --- a/ufetch/postdeploy +++ /dev/null @@ -1 +0,0 @@ -patch -p1 < patch -- 2.30.2 From 7cb476a45ee18dfc54884d9569c258055af5523c Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Tue, 13 Jul 2021 22:14:20 +0200 Subject: [PATCH 3/4] update ufetch --- ufetch/payload/usr/bin/ufetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ufetch/payload/usr/bin/ufetch b/ufetch/payload/usr/bin/ufetch index 8f6284b..f0b2087 100755 --- a/ufetch/payload/usr/bin/ufetch +++ b/ufetch/payload/usr/bin/ufetch @@ -9,7 +9,7 @@ host="$(hostname)" os='Alnux' # I'd just like to interject for a moment... kernel="$(uname -sr)" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" -packages='$(aps list | wc -l)' +packages="$(aps list | sed "s/README.md//" | wc -l)" shell="$(basename "${SHELL}")" ## UI DETECTION -- 2.30.2 From 7a6e56b31db2876f59a73e9598814c39a48dcf9a Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Tue, 13 Jul 2021 23:35:16 +0200 Subject: [PATCH 4/4] fixed curses-lib since it did not copy to lib --- curses-lib/build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curses-lib/build b/curses-lib/build index c792d8c..12005b8 100755 --- a/curses-lib/build +++ b/curses-lib/build @@ -11,4 +11,6 @@ popd ./configure --prefix=/usr --build=$(./config.guess) --mandir=/usr/share/man --with-manpage-format=normal --with-shared --without-debug --without-ada --without-normal --enable-widec make make install DESTDIR="$1" +cp libncursesw.so /lib/libncursesw.so +ln -s /lib/libncursesw.so /lib/libncurses.so echo "INPUT(-lncursesw)" > $1/usr/lib/libncurses.so -- 2.30.2