blob: f0d55d792283f6f1cbbc6c1a541c6b78530a0b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: nippy <nippy@tuta.io>
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
}
|