#!/usr/bin/env bash # Copyright (C) 2022 Seshan Ravikumar # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . set -e # Crash when a command fails echo " * Build Step: OS Variant Image - ProLinux Phone OS " if ! { [[ "$PROLINUX_ARCH" == "aarch64" ]] || [[ "$PROLINUX_ARCH" == "x86_64" ]]; }; then echo "Invalid PROLINUX_ARCH: $PROLINUX_ARCH" exit -1 fi install_aur_package() { echo "Installing AUR package $1 from $2" if compgen -G "/artifacts/$PROLINUX_ARCH/pkgs/$1*.pkg.*" > /dev/null; then echo "Cached package $1 already exists!" cp -v /artifacts/$PROLINUX_ARCH/pkgs/$1*.pkg.* $ROOTFS/home/plu chroot $ROOTFS /bin/bash <> $ROOTFS/sineware.ini # Add files # todo pull these from upstream instead cp -rv /build-scripts/files/kwinrc $ROOTFS/etc/xdg/kwinrc cp -rv /build-scripts/files/applications-blacklistrc $ROOTFS/etc/xdg/applications-blacklistrc cp -rv /build-scripts/files/kscreenlockerrc $ROOTFS/etc/xdg/kscreenlockerrc cp -rv /build-scripts/files/kdeglobals $ROOTFS/etc/xdg/kdeglobals echo " * Entering Arch Chroot (mobile)" mount -t proc /proc $ROOTFS/proc/ mount -t sysfs /sys $ROOTFS/sys/ mount --rbind /dev $ROOTFS/dev/ cp /etc/resolv.conf $ROOTFS/etc/resolv.conf chroot $ROOTFS /bin/bash <