move scripts to own dir

This commit is contained in:
Ella-0 2021-07-31 11:58:05 +00:00
parent c5bca6fe45
commit f18677f304
10 changed files with 33 additions and 22 deletions

View File

@ -1,22 +0,0 @@
fetch() {
# in ./src
# for fetching and patching source files
}
build() {
# in ./src
# configure and build
./configure --prefix=/
# make is bmake
make
}
package() {
# in ./src
# make is bmake
make install DESTDIR=$pkgdir
# samurai is the default ninja implementation
DESTDIR=$pkgdir samu install
# for rust programs we just do this
install -Dm755 target/release/$pkgname $pkgdir/bin
}

27
scripts/build_utils Executable file
View File

@ -0,0 +1,27 @@
cp_packages (){
#IMPORTANT: must be run from the folder where the iglunix repo is.
#NOTE: this will assume that there always is a '*-dev'/'*-doc' package,\n this is not true.
# That's why the errors are shown to some one who cares.
echo "Hello this is build-utils"
for pkg in ${packages[@]}
do
if [ ! -d pkgs/${pkg}/out ]; then
echo "NOTE: ${pkg} was not yet build, building it now"
cd pkgs/${pkg}/
../../iglupkg.sh
cd ../..
fi
echo "Going to copy: $pkg to $1"
tar -xf pkgs/${pkg}/out/${pkg}.*.tar.zst -I zstd -C $1
tar -xf pkgs/${pkg}/out/${pkg}-dev.*.tar.zst -I zstd -C $1 2> /dev/null
tar -xf pkgs/${pkg}/out/${pkg}-doc.*.tar.zst -I zstd -C $1 2> /dev/null
done
}

6
scripts/gentar.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
. ./build_utils
packages=(musl mksh bmake gmake llvm libressl mandoc cmake curl reflex byacc om4 zlib samurai libffi python ca-certificates zlib expat gettext-tiny git kati netbsd-curses kakoune iglunix rust toybox busybox less pci-ids libexecinfo)
cp_packages $(pwd)/_pi_install