#!/bin/bash # Helper script to build the entire nvidia-merged package tree TOP=$PWD [[ ! -d 'output/' ]] && { mkdir $TOP/output mkdir $TOP/output/linux-6.1x/ mkdir $TOP/output/linux-6.8.x/ }; # wipes the package dir clean wipe_package_dir() { rm -rf pkg/ src/ *.pkg.tar.zst } pushd $TOP/packages/vgpu-unlock-rs/ makepkg -s || (echo "failed to makepkg" && exit 1); mv *.pkg.tar.zst $TOP/output wipe_package_dir popd pushd $TOP/packages/nvidia-merged/ # first build for legacy _use_new_patches="false" makepkg -s || (echo "failed to makepkg" && exit 1); mv *.pkg.tar.zst $TOP/output/linux-6.8.x/ wipe_package_dir # then for modern makepkg -s || (echo "failed to makepkg" && exit 1); mv *.pkg.tar.zst $TOP/output/linux-6.1x/ wipe_package_dir popd