** 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
No known key found for this signature in database
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_ver="0.3"
pkg_config_ver="0.4"
pkg_config_name="alnux"
pkg_config_makedepends=""
pkg_config_depends=""

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,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
@ -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
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

View file

@ -1,9 +1,12 @@
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"
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 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
mkdir build
cd build
../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
make
make DESTDIR="$1" install
ln -s 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=""

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