disabled march native by default, switch to zstd compression for packages and switched to toybox tar

This commit is contained in:
Ella-0 2021-05-20 22:09:29 +01:00
parent 63a64d7e7d
commit 6ca4ad4d8a
3 changed files with 11 additions and 6 deletions

View file

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
export JOBS="$(nproc)" export JOBS="$(nproc)"
export RUSTFLAGS="-C target-cpu=native" #export RUSTFLAGS="-C target-cpu=native"
export CC=clang export CC=clang
export CXX=clang++ export CXX=clang++
export CFLAGS="-march=native" #export CFLAGS="-march=native"
export CXXFLAGS="-march=native" #export CXXFLAGS="-march=native"
stat /etc/iglupkg.conf > /dev/null 2> /dev/null && . /etc/iglupkg.conf stat /etc/iglupkg.conf > /dev/null 2> /dev/null && . /etc/iglupkg.conf
@ -26,6 +26,9 @@ function do_fetch() {
srcdir=$(pwd)/src srcdir=$(pwd)/src
stat src > /dev/null 2>/dev/null || do_fetch stat src > /dev/null 2>/dev/null || do_fetch
stat src > /dev/null 2>/dev/null && echo '=========================================='
stat src > /dev/null 2>/dev/null && echo 'Warning: `./src/` found: not running fetch'
stat src > /dev/null 2>/dev/null && echo '=========================================='
cd $srcdir cd $srcdir
@ -60,7 +63,7 @@ cd $dir/out/$pkgname/
find * >> $dir/out/$pkgname/usr/share/iglupkg/$pkgname find * >> $dir/out/$pkgname/usr/share/iglupkg/$pkgname
cd $dir/out/$pkgname cd $dir/out/$pkgname
tar -cf ../$pkgname.$pkgver.tar.xz * tar -I zstd -cf ../$pkgname.$pkgver.tar.zst *
if [ $ext ]; then if [ $ext ]; then
echo $ext | tr ':' '\n' | while read e; do echo $ext | tr ':' '\n' | while read e; do
@ -95,7 +98,7 @@ EOF
find * >> $dir/out/$pkgname-\$e/usr/share/iglupkg/$pkgname-\$e find * >> $dir/out/$pkgname-\$e/usr/share/iglupkg/$pkgname-\$e
cd $dir/out/$pkgname-\$e cd $dir/out/$pkgname-\$e
tar -cf ../$pkgname-\$e.$pkgver.tar.xz * tar -I zstd -cf ../$pkgname-\$e.$pkgver.tar.zst *
done done

View file

@ -78,6 +78,7 @@ package() {
rm $pkgdir/bin/true rm $pkgdir/bin/true
rm $pkgdir/bin/umount rm $pkgdir/bin/umount
rm $pkgdir/bin/usleep rm $pkgdir/bin/usleep
rm $pkgdir/bin/tar
rm $pkgdir/sbin/blockdev rm $pkgdir/sbin/blockdev
rm $pkgdir/sbin/freeramdisk rm $pkgdir/sbin/freeramdisk

View file

@ -29,7 +29,8 @@ package() {
gmake PREFIX=$pkgdir install gmake PREFIX=$pkgdir install
rm $pkgdir/usr/bin/clear rm $pkgdir/usr/bin/clear
rm $pkgdir/usr/bin/tar rm $pkgdir/usr/bin/reset
# rm $pkgdir/usr/bin/tar
} }
license() { license() {