Fixed subpackaging
This commit is contained in:
parent
4848e542d3
commit
89caa8b7c9
1 changed files with 10 additions and 1 deletions
11
lazypkg.sh
11
lazypkg.sh
|
@ -1,9 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export MAKEFLAGS="-j6"
|
export JOBS="16"
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-feature=-crt-static"
|
export RUSTFLAGS="-C target-feature=-crt-static"
|
||||||
export CC=clang
|
export CC=clang
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
|
|
||||||
|
stat /etc/lazypkg.conf > /dev/null 2> /dev/null && . /etc/lazypkg.conf
|
||||||
|
|
||||||
|
export SAMUFLAGS=-j$JOBS
|
||||||
|
export MAKEFLAGS=-j$JOBS
|
||||||
|
|
||||||
. ./build.sh
|
. ./build.sh
|
||||||
dir=$(pwd)
|
dir=$(pwd)
|
||||||
stat out > /dev/null && rm -rf out
|
stat out > /dev/null && rm -rf out
|
||||||
|
@ -52,6 +58,7 @@ find * >> $dir/out/$pkgname/usr/share/lazypkg/$pkgname
|
||||||
|
|
||||||
cd $dir/out/$pkgname
|
cd $dir/out/$pkgname
|
||||||
tar -cf ../$pkgname.$pkgver.tar.xz *
|
tar -cf ../$pkgname.$pkgver.tar.xz *
|
||||||
|
if [ $ext ]; then
|
||||||
|
|
||||||
echo $ext | tr ':' '\n' | while read e; do
|
echo $ext | tr ':' '\n' | while read e; do
|
||||||
echo \$e
|
echo \$e
|
||||||
|
@ -89,6 +96,8 @@ EOF
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
" | sh
|
" | sh
|
||||||
cd $dir
|
cd $dir
|
||||||
|
|
Loading…
Reference in a new issue