35 lines
1.0 KiB
Bash
35 lines
1.0 KiB
Bash
# Maintainer: Aditya Shakya <adi1090x@gmail.com>
|
|
|
|
pkgname=calamares-config-xfce
|
|
pkgver=2.0
|
|
pkgrel=1
|
|
pkgdesc="Calamares configuration for Archcraft XFCE."
|
|
url="https://github.com/archcraft-os/archcraft-xfce"
|
|
arch=('any')
|
|
license=('GPL')
|
|
provides=($pkgname)
|
|
conflicts=('calamares-config' 'calamares-config-prime' 'calamares-config-wayland')
|
|
depends=()
|
|
|
|
prepare() {
|
|
cp -af ../files/. ${srcdir}
|
|
}
|
|
|
|
package() {
|
|
local _bindir=${pkgdir}/usr/bin
|
|
mkdir -p "$_bindir"
|
|
|
|
# copy all files recursively in /etc/calamares
|
|
(find calamares -type f -exec install -Dm 644 "{}" "$pkgdir/etc/{}" \;)
|
|
|
|
# copy install scripts
|
|
install -Dm 755 post_install.sh "$_bindir"/post_install.sh
|
|
install -Dm 755 chrooted_post_install.sh "$_bindir"/chrooted_post_install.sh
|
|
install -Dm 755 post_install_nvidia.sh "$_bindir"/post_install_nvidia.sh
|
|
install -Dm 755 chrooted_post_install_nvidia.sh "$_bindir"/chrooted_post_install_nvidia.sh
|
|
|
|
# make scripts executable
|
|
chmod 755 "$pkgdir"/etc/calamares/launch.sh
|
|
chmod 755 "$pkgdir"/etc/calamares/branding/archcraft/test-slides.sh
|
|
}
|