merge my build

This commit is contained in:
Ohio2 2021-07-14 16:32:54 +02:00
commit fd828da779
42 changed files with 181 additions and 45 deletions

View file

@ -1,5 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="0.3"
pkg_config_ver="0.5"
pkg_config_name="alnux"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,4 +1,7 @@
NAME="alnux"
PRETTY_NAME="alnux"
ID=alnux
BUILD_ID=rolling
BUILD_ID=rolling
HOME_URL=https://git.hippoz.xyz/alnux
SUPPORT_URL=https://git.hippoz.xyz/alnux/aps/issues
BUG_REPORT_URL=https://git.hippoz.xyz/alnux/aps/issues

View file

@ -1,7 +1,9 @@
wget https://ftp.gnu.org/gnu/bash/bash-5.1.8.tar.gz
tar -xf bash-5.1.8.tar.gz
cd bash-5.1.8
sed -e 's/$(prefix)/$(DESTDIR)$(prefix)/g' -i Makefile
./configure
make
make install DESTDIR="$1"

View file

@ -1,6 +1,7 @@
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 \
@ -23,4 +24,5 @@ export PATH=$PATH:$PWD
make configure-host
make tooldir=/usr
make DESTDIR="$1" tooldir=/usr install
ln -sf ld.bfd "$1/usr/bin/ld"

View file

@ -1,6 +1,7 @@
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"

View file

@ -1,9 +1,11 @@
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-1.33.1
make defconfig
LDFLAGS="--static" make
make install DESTDIR="$1"
cd "_install"
install linuxrc "$1"/linuxrc
rsync -a ./bin/ "$1"/bin/

View file

@ -1 +1 @@
#/bin/busybox --install
# /bin/busybox --install

View file

@ -1,8 +1,10 @@
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"
cp -f bzip2 bzdiff bzgrep bzmore "$1/usr/bin"
cp -f libbz2.so.1.0.8 libbz2.a "$1/usr/lib"

View file

@ -1,6 +1,7 @@
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"
make DESTDIR="$1" install

View file

@ -1,6 +1,7 @@
wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz
tar -xf ncurses-6.2.tar.gz
cd ncurses-6.2
sed -i s/mawk// configure
mkdir build
pushd build
@ -10,6 +11,7 @@ make -C progs tic
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 --with-pkg-config-libdir=/usr/lib/ncurses/6_2/lib/pkgconfig
make
<<<<<<< HEAD
make DESTDIR="$1" install
ln -s $1/usr/lib/ncurses/6_2/bin/captoinfo $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/clear $1/usr/bin/
@ -51,4 +53,10 @@ ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/menu.pc $1/usr/lib/pkgconfig/
ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/ncurses++.pc $1/usr/lib/pkgconfig/
ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/ncurses.pc $1/usr/lib/pkgconfig/
ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/panel.pc $1/usr/lib/pkgconfig/
=======
make install DESTDIR="$1"
cp libncursesw.so /lib/libncursesw.so
ln -s /lib/libncursesw.so /lib/libncurses.so
>>>>>>> e1d9880bd99d6d808dc9beccdf707f6d87bedae6
echo "INPUT(-lncursesw)" > $1/usr/lib/libncurses.so

7
expat/build Executable file
View file

@ -0,0 +1,7 @@
wget http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz
tar -xf expat-2.1.0.tar.gz
cd expat-2.1.0
./configure --prefix=/usr --disable-static
make
make DESTDIR="$1" install

5
expat/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="2.1.0"
pkg_config_name="expat"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,9 +1,16 @@
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 <malloc.h>" 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"
<<<<<<< HEAD
ln -sv flex $1/usr/bin/lex
=======
ln -sv flex /usr/bin/lex
>>>>>>> e1d9880bd99d6d808dc9beccdf707f6d87bedae6

12
fontconfig/build Executable file
View file

@ -0,0 +1,12 @@
wget https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.1.tar.bz2
tar -xf fontconfig-2.13.1.tar.bz2
cd fontconfig-2.13.1
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-docs \
--docdir=/usr/share/doc/fontconfig-2.13.1
make
make DESTDIR="$1" install

5
fontconfig/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="2.13.1"
pkg_config_name="fontconfig"
pkg_config_makedepends=""
pkg_config_depends=""

7
freetype2/build Executable file
View file

@ -0,0 +1,7 @@
wget https://downloads.sourceforge.net/freetype/freetype-2.10.4.tar.xz
tar -xf freetype-2.10.4.tar.xz
cd freetype-2.10.4
./configure --prefix=/usr --disable-static
make
make DESTDIR="$1" install

5
freetype2/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="2.10.4"
pkg_config_name="freetype2"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,24 +1,49 @@
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
mv gmp-6.2.1 gmp
mv mpfr-4.1.0 mpfr
mv mpc-1.2.1 mpc
sed -i '/m64=/s/lib64/lib/' ./config/i386/t-linux64
sed -i 's/lib64/lib/' ./config/i386/linux64.h
# Use lib not lib64 by default.
sed '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 > _
mv -f _ gcc/gcc/config/i386/t-linux64
sed 's/lib64/lib/' gcc/gcc/config/i386/linux64.h > _
mv -f _ gcc/gcc/config/i386/linux64.h
mkdir build
cd build
../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
../configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-multilib \
--disable-symvers \
--disable-libmpx \
--disable-libmudflap \
--disable-libsanitizer \
--disable-werror \
--disable-fixed-point \
--disable-libstdcxx-pch \
--disable-nls \
--enable-checking=release \
--enable-__cxa_atexit \
--enable-default-pie \
--enable-default-ssp \
--enable-shared \
--enable-threads \
--enable-tls \
--enable-languages=c,c++
make
make install DESTDIR="$1"
ln -s gcc "$1/usr/bin/cc"
make DESTDIR="$1" install
# Save 35MB. (from KISS)
find "$1" -name libgtkpeer.a -exec rm -f {} +
find "$1" -name libgjsmalsa.a -exec rm -f {} +
find "$1" -name libgij.a -exec rm -f {} +
ln -sf gcc "$1/usr/bin/cc"
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,5 +1,5 @@
pkg_config_deploy="true"
pkg_config_ver="0.1"
pkg_config_ver="11.1.0"
pkg_config_name="gcc"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,6 +1,7 @@
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,8 +1,10 @@
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
make
make install DESTDIR="$1"

View file

@ -1,5 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="0.2"
pkg_config_ver="0.3"
pkg_config_name="grub-defconfig"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,11 +1,8 @@
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"
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"
wget https://mirrors.nav.ro/gnu/gzip/gzip-1.10.tar.gz
tar -xf gzip-1.10.tar.gz
cd gzip-1.10
./configure --prefix=/usr
make
make DESTDIR="$1" install

View file

@ -1,5 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="2.6"
pkg_config_ver="1.10"
pkg_config_name="gzip"
pkg_config_makedepends=""
pkg_config_depends=""

View file

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

View file

@ -1,5 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="0.1"
pkg_config_ver="b1f7ea13c94d5990af4de74b2691ebf4d681fd66"
pkg_config_name="hummingbird"
pkg_config_makedepends=""
pkg_config_depends=""

12
libdrm/build Executable file
View file

@ -0,0 +1,12 @@
wget https://dri.freedesktop.org/libdrm/libdrm-2.4.104.tar.xz
tar -xf libdrm-2.4.104.tar.xz
cd libdrm-2.4.104
export DESTDIR="$1"
meson \
--prefix=/usr \
. build
ninja -C build
ninja -C build install

5
libdrm/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="2.4.104"
pkg_config_name="libdrm"
pkg_config_makedepends=""
pkg_config_depends=""

6
libpng/build Executable file
View file

@ -0,0 +1,6 @@
wget https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz
tar -xf v1.6.37.tar.gz
cd v1.6.37
make
make DESTDIR="$1" install

5
libpng/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="1.6.37"
pkg_config_name="libpng"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,8 +1,10 @@
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"

View file

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

View file

@ -1,10 +1,11 @@
wget https://www.nano-editor.org/dist/v5/nano-5.8.tar.xz
tar -xf nano-5.8.tar.xz
cd nano-5.8
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-utf8 \
--disable-docs \
--docdir=/usr/share/doc/nano-5.8
make
make install &&
install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-5.8
make DESTDIR="$1" install

View file

@ -1,4 +1,6 @@
git clone https://github.com/ninja-build/ninja.git
cd ninja
git clone https://github.com/ninja-build/ninja/archive/refs/tags/v1.10.2.tar.gz
tar -xf v1.10.2.tar.gz
cd v1.10.2
./configure.py --bootstrap
mv ninja "$1"/usr/bin
cp -pv ninja "$1"/usr/bin

View file

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

View file

@ -1,6 +1,7 @@
wget -O openrc-0.43.3.tar.gz https://github.com/OpenRC/openrc/archive/refs/tags/0.43.3.tar.gz
tar -xf openrc-0.43.3.tar.gz
cd openrc-0.43.3
make
make install BRANDING=\"Alnux/$(uname -s)\" SH=/bin/sh DESTDIR="$1"/sbin/openrc PREFIX="$1"
cat tmpfs /tmp tmpfs rw,nosuid,noatime,nodev,size=20G,mode=1777 0 0 > "$1"/etc/fstab

View file

@ -1,7 +1,9 @@
wget https://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz
tar -xf pth-2.0.7.tar.gz
cd pth-2.0.7
sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in
./configure --prefix=/usr --disable-static --mandir=/usr/share/man
make
make install &&

View file

@ -1,6 +1,7 @@
wget https://ftp.gnu.org/gnu/tar/tar-1.34.tar.xz
tar -xf tar-1.34
cd tar-1.34
./configure DEFAULT_RMT_DIR=/etc
make
make install DESTDIR="$1"
make DESTDIR="$1" install

View file

@ -1,5 +1,5 @@
pkg_config_deploy="true"
pkg_config_ver="0.0.1"
pkg_config_ver="0.3"
pkg_config_name="ufetch"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -1,6 +1,7 @@
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"
make DESTDIR="$1" install

View file

@ -1,7 +1,8 @@
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" --shared
make
make install DESTDIR="$1"
make DESTDIR="$1" install

View file

@ -1,6 +1,7 @@
wget https://www.zsh.org/pub/zsh-5.8.tar.xz
tar -xf zsh-5.8.tar.xz
cd zsh-5.8
./configure --prefix=/usr --sysconfdir=/etc/zsh --enable-etcdir=/etc/zsh
make
make install DESTDIR="$1"
make DESTDIR="$1" install