# Maintainer: Daniel Langbein _pkgname=sddm-theme-nordic _reponame=arch pkgname="de-p1st-$_pkgname" pkgver=0.0.8 pkgrel=1 pkgdesc="sddm with Nordic theme" arch=('any') url="https://codeberg.org/privacy1st/${_reponame}" license=('MIT') depends=('sddm' 'sddm-nordic-theme-git') # Without plasma-framework the following error occurs: # Main.qml:28:1: module "org.kde.plasma.extras" is not installed depends+=('plasma-framework') depends+=('holo' 'git' 'base') # holo depends on base (otherwise "holo apply" may fail on initial system installation) and git (git-diff) depends+=('de-p1st-wallpaper') makedepends=('git') install='.install' source=("git+${url}.git") sha256sums=('SKIP') provides=('de-p1st-sddm-theme' 'de-p1st-sddm-theme-onscreenkeyboard-support') conflicts=('de-p1st-sddm-theme' 'de-p1st-sddm-theme-onscreenkeyboard-support') package() { cd "${_reponame}/pkg/${pkgname}" install -Dm0644 p1st-theme.conf "$pkgdir"/etc/sddm.conf.d/p1st-theme.conf # Replace theme background: # Add symlink to background of "de-p1st-wallpaper" install -dm0755 "$pkgdir"/usr/share/holo/files/20-"$pkgname"/usr/share/sddm/themes/Nordic/assets/ ln -s /usr/share/backgrounds/de-p1st.jpg "$pkgdir"/usr/share/holo/files/20-"$pkgname"/usr/share/sddm/themes/Nordic/assets/bg.jpg # TODO: Fix upstream? See AUR comment: https://aur.archlinux.org/pkgbase/nordic-kde-git/#comment-807577 # Fix Nordic theme "Main.qml" -> Property "Battery" not found / missing install -Dm0544 Main.qml.holoscript "$pkgdir"/usr/share/holo/files/20-"$pkgname"/usr/share/sddm/themes/Nordic/Main.qml.holoscript }