#!@BASH@ # # Copyright (C) 2020-2021 Alexandros Theodotou # # This file is part of Zrythm # # Zrythm is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Zrythm is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with Zrythm. If not, see . set -e out_file="$1" # chroot dir chroot_dir="$2" src_tarball="$3" # full paths to each package (pkg.tar.zst) to install packages="${@:4}" packages_array=($packages) dash_trial="@DASH_TRIAL@" mingw_pkg_prefix="@MINGW_PKG_PREFIX@" mingw_prefix="@MINGW_PREFIX@" chroot_mingw_prefix="$chroot_dir$mingw_prefix" rm -rf $chroot_dir mkdir -p $chroot_dir/var/lib/pacman mkdir -p $chroot_dir/var/log mkdir -p $chroot_dir/tmp pacman -Syu --root $chroot_dir pacman -S \ filesystem bash pacman \ --noconfirm --needed --root $chroot_dir for pkg in "${packages_array[@]}"; do pacman -U "$pkg" --noconfirm --needed --root $chroot_dir done # verify plugins exist ls -l $chroot_mingw_prefix/lib/lv2/Z*.lv2 pacman -S \ "$mingw_pkg_prefix-gtksourceview5" \ "$mingw_pkg_prefix-fftw" \ "$mingw_pkg_prefix-adwaita-icon-theme" \ --noconfirm --needed --root $chroot_dir cp -R $mingw_prefix/lib/carla "$chroot_mingw_prefix/lib/" glib-compile-schemas.exe \ "$chroot_mingw_prefix/share/glib-2.0/schemas" cp $chroot_mingw_prefix/bin/zrythm.exe $chroot_mingw_prefix/bin/zrythm$dash_trial.exe || true touch $out_file