# Maintainer: nippy pkgname=raveos-calamares-theme pkgver=2.0.0 pkgrel=65 pkgdesc="RaveOS Calamares Theme" arch=('any') url="https://git.rp1.hu/RaveOS" license=('GPL') #depends=('calamares') # No external sources; files are expected to be present alongside the PKGBUILD source=() sha256sums=() package() { # Create the destination directory inside the package environment install -d "${pkgdir}/etc" # Copy the contents of the local 'etc' directory (next to PKGBUILD) to the package # We use "${startdir}" to reference the directory containing the PKGBUILD cp -r "${startdir}/etc/." "${pkgdir}/etc/" install -Dm755 "${startdir}/etc/calamares/modules/calamares-microcode-fix.sh" \ "${pkgdir}/etc/calamares/modules/calamares-microcode-fix.sh" install -Dm755 "${startdir}/etc/calamares/modules/calamares-gpu-drivers.sh" \ "${pkgdir}/etc/calamares/modules/calamares-gpu-drivers.sh" install -Dm755 "${startdir}/etc/calamares/modules/raveos-chown-homes.sh" \ "${pkgdir}/etc/calamares/modules/raveos-chown-homes.sh" # Branding fordítások: .ts -> .qm (lrelease) local lrelease_bin lrelease_bin="$(command -v lrelease6 || command -v lrelease || echo /usr/lib/qt6/bin/lrelease)" for ts in "${startdir}"/etc/calamares/branding/raveos/lang/calamares-raveos_*.ts; do [ -e "$ts" ] || continue "${lrelease_bin}" "$ts" -qm "${pkgdir}/etc/calamares/branding/raveos/lang/$(basename "${ts%.ts}").qm" done }