** lots of small package cleanups and fixes

This commit is contained in:
hippoz 2021-07-14 16:37:03 +03:00
parent f10c0df497
commit 27d2fcc4c7
Signed by untrusted user who does not match committer: hippoz
GPG key ID: 7C52899193467641
31 changed files with 62 additions and 30 deletions

View file

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

View file

@ -1,7 +1,9 @@
wget https://ftp.gnu.org/gnu/bash/bash-5.1.8.tar.gz wget https://ftp.gnu.org/gnu/bash/bash-5.1.8.tar.gz
tar -xf bash-5.1.8.tar.gz tar -xf bash-5.1.8.tar.gz
cd bash-5.1.8 cd bash-5.1.8
sed -e 's/$(prefix)/$(DESTDIR)$(prefix)/g' -i Makefile sed -e 's/$(prefix)/$(DESTDIR)$(prefix)/g' -i Makefile
./configure ./configure
make make
make install DESTDIR="$1" 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 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 tar -xf binutils-2.36.1.tar.xz
cd binutils-2.36.1 cd binutils-2.36.1
chmod +x makeinfo chmod +x makeinfo
export PATH=$PATH:$PWD export PATH=$PATH:$PWD
./configure \ ./configure \
@ -23,4 +24,5 @@ export PATH=$PATH:$PWD
make configure-host make configure-host
make tooldir=/usr make tooldir=/usr
make DESTDIR="$1" tooldir=/usr install make DESTDIR="$1" tooldir=/usr install
ln -sf ld.bfd "$1/usr/bin/ld" 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 wget https://ftp.gnu.org/gnu/bison/bison-3.7.6.tar.xz
tar -xf bison-3.7.6.tar.xz tar -xf bison-3.7.6.tar.xz
cd bison-3.7.6 cd bison-3.7.6
./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.7.6 ./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.7.6
make make
make install DESTDIR="$1" 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 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 tar -xf busybox-1.33.1.tar.bz2
cd busybox-1.33.1 cd busybox-1.33.1
make defconfig make defconfig
LDFLAGS="--static" make LDFLAGS="--static" make
make install DESTDIR="$1" make install DESTDIR="$1"
cd "_install" cd "_install"
install linuxrc "$1"/linuxrc install linuxrc "$1"/linuxrc
rsync -a ./bin/ "$1"/bin/ 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 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 tar -xf bzip2-1.0.8.tar.gz
cd bzip2-1.0.8 cd bzip2-1.0.8
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so
make CC="${CC:-cc} $CFLAGS -static -fPIC $LDFLAGS" bzip2 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" 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 bzip2 bzdiff bzgrep bzmore "$1/usr/bin"
cp -f libbz2.so.1.0.8 libbz2.a "$1/usr/lib" 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 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 tar -xf cmake-3.21.0-rc2.tar.gz
cd cmake-3.21.0-rc2.tar.gz cd cmake-3.21.0-rc2.tar.gz
./bootstrap ./bootstrap
make 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 wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz
tar -xf ncurses-6.2.tar.gz tar -xf ncurses-6.2.tar.gz
cd ncurses-6.2 cd ncurses-6.2
sed -i s/mawk// configure sed -i s/mawk// configure
mkdir build mkdir build
pushd build pushd build
@ -11,6 +12,7 @@ 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 ./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
make install DESTDIR="$1" make install DESTDIR="$1"
cp libncursesw.so /lib/libncursesw.so cp libncursesw.so /lib/libncursesw.so
ln -s /lib/libncursesw.so /lib/libncurses.so ln -s /lib/libncursesw.so /lib/libncurses.so
echo "INPUT(-lncursesw)" > $1/usr/lib/libncurses.so echo "INPUT(-lncursesw)" > $1/usr/lib/libncurses.so

View file

@ -1,9 +1,12 @@
wget https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz 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 tar -xf flex-2.6.4.tar.gz
cd flex-2.6.4 cd flex-2.6.4
sed -i "/math.h/a #include <malloc.h>" src/flexdef.h 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 HELP2MAN=/tools/bin/true ./configure --prefix=/usr --docdir=/usr/share/doc/flex-2.6.4
make make
make check make check
make install DESTDIR="$1" make install DESTDIR="$1"
ln -sv flex /usr/bin/lex ln -sv flex /usr/bin/lex

View file

@ -7,18 +7,21 @@ wget https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz
tar -xf gmp-6.2.1.tar.xz tar -xf gmp-6.2.1.tar.xz
tar -xf mpfr-4.1.0.tar.xz tar -xf mpfr-4.1.0.tar.xz
tar -xf mpc-1.2.1.tar.gz tar -xf mpc-1.2.1.tar.gz
mv gmp-6.2.1 gmp mv gmp-6.2.1 gmp
mv mpfr-4.1.0 mpfr mv mpfr-4.1.0 mpfr
mv mpc-1.2.1 mpc mv mpc-1.2.1 mpc
sed -i '/m64=/s/lib64/lib/' ./config/i386/t-linux64 sed -i '/m64=/s/lib64/lib/' ./config/i386/t-linux64
sed -i 's/lib64/lib/' ./config/i386/linux64.h sed -i 's/lib64/lib/' ./config/i386/linux64.h
mkdir build mkdir build
cd build cd build
../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++ ../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
make make
make DESTDIR="$1" install make DESTDIR="$1" install
ln -s gcc "$1/usr/bin/cc" ln -s gcc "$1/usr/bin/cc"
echo "#!/bin/sh" > "$1"/usr/bin/c99 echo "#!/bin/sh" > "$1"/usr/bin/c99
echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99 echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99
chmod +x "$1"/usr/bin/c99 chmod +x "$1"/usr/bin/c99

View file

@ -1,5 +1,5 @@
pkg_config_deploy="true" pkg_config_deploy="true"
pkg_config_ver="0.1" pkg_config_ver="11.1.0"
pkg_config_name="gcc" pkg_config_name="gcc"
pkg_config_makedepends="" pkg_config_makedepends=""
pkg_config_depends="" 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 wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz
tar -xf git-2.9.5.tar.xz tar -xf git-2.9.5.tar.xz
cd git-2.9.5 cd git-2.9.5
./configure --prefix=/usr ./configure --prefix=/usr
make make
make install DESTDIR="$1" make install DESTDIR="$1"

View file

@ -1,8 +1,10 @@
wget https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz wget https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz
tar -xf glibc-2.33.tar.gz tar -xf glibc-2.33.tar.gz
cd glibc-2.33 cd glibc-2.33
mkdir build mkdir build
cd build cd build
../configure --prefix=/usr ../configure --prefix=/usr
make make
make install DESTDIR="$1" make install DESTDIR="$1"

View file

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

View file

@ -1,11 +1,8 @@
wget https://zlib.net/pigz/pigz-2.6.tar.gz wget https://mirrors.nav.ro/gnu/gzip/gzip-1.10.tar.gz
tar -xf pigz-2.6.tar.gz tar -xf gzip-1.10.tar.gz
cd pigz-2.6 cd gzip-1.10
make CC="${CC:-cc} -static"
mkdir -p "$1/usr/bin" "$1/usr/share/man/man1" ./configure --prefix=/usr
cp -f pigz unpigz "$1/usr/bin"
cp -f pigz.1 "$1/usr/share/man/man1" make
ln -sf pigz "$1/usr/bin/gzip" make DESTDIR="$1" install
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"

View file

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

View file

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

View file

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

View file

@ -1,8 +1,10 @@
wget https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz wget https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz
tar -xf m4-1.4.19.tar.xz tar -xf m4-1.4.19.tar.xz
cd m4-1.4.19 cd m4-1.4.19
sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
./configure --prefix=/usr --build=$(build-aux/config.guess) ./configure --prefix=/usr --build=$(build-aux/config.guess)
make make
make install DESTDIR="$1" make install DESTDIR="$1"

View file

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

View file

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

View file

@ -1,4 +1,6 @@
git clone https://github.com/ninja-build/ninja.git git clone https://github.com/ninja-build/ninja/archive/refs/tags/v1.10.2.tar.gz
cd ninja tar -xf v1.10.2.tar.gz
cd v1.10.2
./configure.py --bootstrap ./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_deploy=true
pkg_config_ver="1.10.2-git" pkg_config_ver="1.10.2"
pkg_config_name="ninja" pkg_config_name="ninja"
pkg_config_makedepends="" pkg_config_makedepends=""
pkg_config_depends="" 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 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 tar -xf openrc-0.43.3.tar.gz
cd openrc-0.43.3 cd openrc-0.43.3
make make
make install BRANDING=\"Alnux/$(uname -s)\" SH=/bin/sh DESTDIR="$1"/sbin/openrc PREFIX="$1" 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 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 wget https://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz
tar -xf pth-2.0.7.tar.gz tar -xf pth-2.0.7.tar.gz
cd pth-2.0.7 cd pth-2.0.7
sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in
./configure --prefix=/usr --disable-static --mandir=/usr/share/man ./configure --prefix=/usr --disable-static --mandir=/usr/share/man
make make
make install && make install &&

View file

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

View file

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

View file

@ -1,6 +1,7 @@
wget https://tukaani.org/xz/xz-5.2.5.tar.gz wget https://tukaani.org/xz/xz-5.2.5.tar.gz
tar -xf xz-5.2.5.tar.gz tar -xf xz-5.2.5.tar.gz
cd xz-5.2.5 cd xz-5.2.5
./configure --prefix=/usr --disable-nls ./configure --prefix=/usr --disable-nls
make 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 wget https://zlib.net/zlib-1.2.11.tar.gz
tar -xf zlib-1.2.11.tar.gz tar -xf zlib-1.2.11.tar.gz
cd zlib-1.2.11 cd zlib-1.2.11
export CFLAGS="$CFLAGS -fPIC" export CFLAGS="$CFLAGS -fPIC"
./configure --prefix="$1" --shared ./configure --prefix="$1" --shared
make 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 wget https://www.zsh.org/pub/zsh-5.8.tar.xz
tar -xf zsh-5.8.tar.xz tar -xf zsh-5.8.tar.xz
cd zsh-5.8 cd zsh-5.8
./configure --prefix=/usr --sysconfdir=/etc/zsh --enable-etcdir=/etc/zsh ./configure --prefix=/usr --sysconfdir=/etc/zsh --enable-etcdir=/etc/zsh
make make
make install DESTDIR="$1" make DESTDIR="$1" install