From d82e652e9892f85026ef32471ce8c7f202453aca Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Sun, 4 Jul 2021 20:28:36 +0200 Subject: [PATCH] readded those packages --- binutils/build | 26 ++++++++++++++++++++++++++ binutils/package | 5 +++++ bzip2/build | 15 +++++++++++++++ bzip2/package | 5 +++++ gzip/build | 11 +++++++++++ gzip/package | 5 +++++ xz/build | 6 ++++++ xz/package | 5 +++++ zlib/build | 7 +++++++ zlib/package | 5 +++++ 10 files changed, 90 insertions(+) create mode 100644 binutils/build create mode 100644 binutils/package create mode 100644 bzip2/build create mode 100644 bzip2/package create mode 100644 gzip/build create mode 100644 gzip/package create mode 100644 xz/build create mode 100644 xz/package create mode 100644 zlib/build create mode 100644 zlib/package diff --git a/binutils/build b/binutils/build new file mode 100644 index 0000000..0256175 --- /dev/null +++ b/binutils/build @@ -0,0 +1,26 @@ +wget -O binutils.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz +tar -xf binutils.tar.xz +cd binutils +chmod +x makeinfo +export PATH=$PATH:$PWD +./configure \ + --prefix=/usr \ + --with-lib-path=/usr/lib:/usr/local/lib \ + --enable-targets=x86_64-pep \ + --enable-deterministic-archives \ + --disable-gold \ + --enable-lto \ + --enable-ld=default \ + --enable-plugins \ + --disable-multilib \ + --disable-werror \ + --disable-gdb \ + --disable-nls \ + --disable-readline \ + --disable-gprof \ + --with-mmap \ + --with-system-zlib +make configure-host +make tooldir=/usr +make DESTDIR="$1" tooldir=/usr install +ln -sf ld.bfd "$1/usr/bin/ld" diff --git a/binutils/package b/binutils/package new file mode 100644 index 0000000..434a2d6 --- /dev/null +++ b/binutils/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="2.36.1" +pkg_config_name="binutils" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/bzip2/build b/bzip2/build new file mode 100644 index 0000000..5e99447 --- /dev/null +++ b/bzip2/build @@ -0,0 +1,15 @@ +wget -O bzip2.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz +tar -xf bzip2.tar.gz +cd bzip2 +make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so +make CC="${CC:-cc} $CFLAGS -static -fPIC $LDFLAGS" bzip2 +mkdir -p "$1/usr/bin" "$1/usr/lib" "$1/usr/share/man/man1" "$1/usr/include" +cp -f bzip2 bzdiff bzgrep bzmore "$1/usr/bin" +cp -f libbz2.so.1.0.8 libbz2.a "$1/usr/lib" +cp -f bzip2.1 "$1/usr/share/man/man1" +cp -f bzlib.h "$1/usr/include" +ln -sf libbz2.so.1.0.8 "$1/usr/lib/libbz2.so" +ln -sf libbz2.so.1.0.8 "$1/usr/lib/libbz2.so.1" +ln -sf libbz2.so.1.0.8 "$1/usr/lib/libbz2.so.1.0" +ln -sf bzip2 "$1/usr/bin/bunzip2" +ln -sf bzip2 "$1/usr/bin/bzcat" diff --git a/bzip2/package b/bzip2/package new file mode 100644 index 0000000..e6cc986 --- /dev/null +++ b/bzip2/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.0.8" +pkg_config_name="bzip2" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/gzip/build b/gzip/build new file mode 100644 index 0000000..804ed0c --- /dev/null +++ b/gzip/build @@ -0,0 +1,11 @@ +wget -O gzip.tar.gz https://zlib.net/pigz/pigz-2.6.tar.gz +tar -xf gzip.tar.gz +cd gzip +make CC="${CC:-cc} -static" +mkdir -p "$1/usr/bin" "$1/usr/share/man/man1" +cp -f pigz unpigz "$1/usr/bin" +cp -f pigz.1 "$1/usr/share/man/man1" +ln -sf pigz "$1/usr/bin/gzip" +ln -sf pigz "$1/usr/bin/zcat" +ln -sf unpigz "$1/usr/bin/gunzip" +ln -sf pigz.1 "$1/usr/share/man/man1/gzip.1" diff --git a/gzip/package b/gzip/package new file mode 100644 index 0000000..7a5b471 --- /dev/null +++ b/gzip/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="2.6" +pkg_config_name="gzip" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/xz/build b/xz/build new file mode 100644 index 0000000..e513a29 --- /dev/null +++ b/xz/build @@ -0,0 +1,6 @@ +wget -O xz.tar.gz https://tukaani.org/xz/xz-5.2.5.tar.gz +tar -xf xz.tar.gz +cd xz +./configure --prefix=/usr --disable-nls +make +make install DESTDIR="$1" diff --git a/xz/package b/xz/package new file mode 100644 index 0000000..45a9902 --- /dev/null +++ b/xz/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="5.2.5" +pkg_config_name="xz" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/zlib/build b/zlib/build new file mode 100644 index 0000000..f1d1234 --- /dev/null +++ b/zlib/build @@ -0,0 +1,7 @@ +wget -O zlib.tar.gz https://zlib.net/zlib-1.2.11.tar.gz +tar -xf zlib.tar.gz +cd zlib +export CFLAGS="$CFLAGS -fPIC" +./configure --prefix="$1" --lib-dir="/usr/lib" --shared +make +make install DESTDIR="$1" diff --git a/zlib/package b/zlib/package new file mode 100644 index 0000000..9ee9878 --- /dev/null +++ b/zlib/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.2.11" +pkg_config_name="zlib" +pkg_config_makedepends="" +pkg_config_depends=""