Merge pull request 'master' (#8) from Ohio2/repo:master into master

Reviewed-on: alnux/repo#8
yup. one TODO is the gcc build script, it downloads some other things which might not be needed for building it?
This commit is contained in:
hippoz 2021-07-07 21:01:12 +01:00
commit c7edc49d64
18 changed files with 77 additions and 36 deletions

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/binutils/binutils.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz
tar -xf ${temp_location}/binutils/binutils.tar.xz
cd ${temp_location}/biinutils/binutils
wget -O binutils-2.36.1.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz
tar -xf binutils-2.36.1.tar.xz
cd binutils-2.36.1
chmod +x makeinfo
export PATH=$PATH:$PWD
./configure \

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/busybox/busybox.tar.bz2 https://busybox.net/downloads/busybox-1.33.1.tar.bz2
tar -xf ${temp_location}/busybox/busybox.tar.bz2
cd ${temp_location}/busybox
wget -O busybox-1.33.1.tar.bz2 https://busybox.net/downloads/busybox-1.33.1.tar.bz2
tar -xf busybox-1.33.1.tar.bz2
cd busybox
make defconfig
LDFLAGS="--static" make
make install DESTDIR="$1"

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/bzip2/bzip2.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
tar -xf ${temp_location}/bzip2/bzip2.tar.gz
cd ${temp_location}/bzip2/bzip2
wget -O bzip2-1.0.8.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
tar -xf bzip2-1.0.8.tar.gz
cd bzip2-1.0.8
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"

8
clang/build Executable file
View file

@ -0,0 +1,8 @@
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz
tar -xf clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz
cd clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04
cd OBJ_ROOT
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$1"/usr/bin
make -j`nproc`
make install DESTDIR="$1"

5
clang/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="12.0.0"
pkg_config_name="clang"
pkg_config_makedepends="cmake ninja"
pkg_config_depends=""

6
cmake/build Executable file
View file

@ -0,0 +1,6 @@
wget https://github.com/Kitware/CMake/releases/download/v3.21.0-rc2/cmake-3.21.0-rc2.tar.gz
tar -xf cmake-3.21.0-rc2.tar.gz
cd cmake-3.21.0-rc2.tar.gz
./bootstrap
make
make install DESTDIR="$1"

5
cmake/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="3.21.0-rc2"
pkg_config_name="cmake"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,6 +1,12 @@
wget -O ${temp_location}/gcc/gcc.tar.gz
tar -xf ${temp_location}/gcc/gcc.tar.gz
cd ${temp_location}/gcc/gcc
wget -O gcc-11.1.0.tar.gz https://gcc.gnu.org/pub/gcc/releases/gcc-11.1.0/gcc-11.1.0.tar.xz
tar -xf gcc-11.1.0.tar.gz
cd gcc-11.1.0
wget https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz
wget https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz
wget https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz
tar -xf gmp-6.2.1.tar.xz
tar -xf mpfr-4.1.0.tar.xz
tar -xf mpc-1.2.1.tar.gz
sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64
sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
mkdir build
@ -9,5 +15,7 @@ cd build
make
make install DESTDIR="$1"
ln -s gcc "$1/usr/bin/cc"
install -Dm755 ../c99 "$1/usr/bin/c99"
echo "#!/bin/sh" > "$1"/usr/bin/c99
echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99
chmod +x "$1"/usr/bin/c99

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/git/git.tar.xz https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz
tar -xf ${temp_location}/git/git.tar.xz
cd ${temp_location}/git/git
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz
tar -xf git-2.9.5.tar.xz
cd git-2.9.5
./configure --prefix=/usr
make
make install DESTDIR="$1"

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/glibc/glibc.tar.gz https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz
tar -xf ${temp_location}/glibc/glibc.tar.gz
cd ${temp_location}/glibc/glibc
wget https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz
tar -xf glibc-2.33.tar.gz
cd glibc-2.33
mkdir build
cd build
../configure --prefix=/usr

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/gzip/gzip.tar.gz https://zlib.net/pigz/pigz-2.6.tar.gz
tar -xf ${temp_location}/gzip/gzip.tar.gz
cd ${temp_location}/gzip/gzip
wget https://zlib.net/pigz/pigz-2.6.tar.gz
tar -xf pigz-2.6.tar.gz
cd pigz-2.6
make CC="${CC:-cc} -static"
mkdir -p "$1/usr/bin" "$1/usr/share/man/man1"
cp -f pigz unpigz "$1/usr/bin"

View file

@ -1,4 +1,4 @@
git clone https://github.com/Sweets/hummingbird ${temp_location}/hummingbird-build
cd ${temp_location}/hummingbird-build
git clone https://github.com/Sweets/hummingbird hummingbird-build
cd hummingbird-build
make
make install DESTDIR=$1

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/make/make.tar.gz https://ftp.gnu.org/gnu/make/make-4.3.tar.gz
untar -xf ${temp_location}/make/make.tar.gz
cd ${temp_location}/make/make
wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz
untar -xf make-4.3.tar.gz
cd make-4.3
export CFLAGS="$CFLAGS -static"
./configure --prefix=/usr
make

4
ninja/build Executable file
View file

@ -0,0 +1,4 @@
git clone https://github.com/ninja-build/ninja.git
cd ninja
./configure.py --bootstrap
mv ninja "$1"/usr/bin

5
ninja/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="1.10.2-git"
pkg_config_name="ninja"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/openssl/openssl.tar.gz https://www.openssl.org/source/openssl-3.0.0-beta1.tar.gz
tar -xf ${temp_location}/openssl/openssl.tar.gz
cd ${temp_location}/openssl/openssl
wget https://www.openssl.org/source/openssl-3.0.0-beta1.tar.gz
tar -xf openssl-3.0.0-beta1.tar.gz
cd openssl-3.0.0-beta1
chmod +x ./config
./config --prefix="/usr"
make

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/xz/xz.tar.gz https://tukaani.org/xz/xz-5.2.5.tar.gz
tar -xf ${temp_location}/xz/xz.tar.gz
cd ${temp_location}/xz/xz
wget https://tukaani.org/xz/xz-5.2.5.tar.gz
tar -xf xz-5.2.5.tar.gz
cd xz-5.2.5
./configure --prefix=/usr --disable-nls
make
make install DESTDIR="$1"

View file

@ -1,6 +1,6 @@
wget -O ${temp_location}/zlib/zlib.tar.gz https://zlib.net/zlib-1.2.11.tar.gz
tar -xf ${temp_location}/zlib/zlib.tar.gz
cd ${temp_location}/zlib/zlib
wget https://zlib.net/zlib-1.2.11.tar.gz
tar -xf zlib-1.2.11.tar.gz
cd zlib-1.2.11
export CFLAGS="$CFLAGS -fPIC"
./configure --prefix="$1" --lib-dir="/usr/lib" --shared
make