2021-05-14 12:51:26 +02:00
|
|
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
|
|
|
_pkgname=sddm-theme-nordic
|
|
|
|
_reponame=arch
|
|
|
|
pkgname="de-p1st-$_pkgname"
|
2021-06-15 20:55:01 +02:00
|
|
|
pkgver=0.0.6
|
2021-05-14 13:54:29 +02:00
|
|
|
pkgrel=1
|
2021-05-14 12:51:26 +02:00
|
|
|
pkgdesc="sddm with Nordic theme"
|
|
|
|
arch=('any')
|
|
|
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
|
|
|
license=('MIT')
|
2021-05-14 13:39:17 +02:00
|
|
|
|
2021-05-14 12:51:26 +02:00
|
|
|
depends=('sddm' 'sddm-nordic-theme-git')
|
2021-05-14 13:39:17 +02:00
|
|
|
# Without plasma-framework the following error occurs:
|
|
|
|
# Main.qml:28:1: module "org.kde.plasma.extras" is not installed
|
2021-06-15 20:49:47 +02:00
|
|
|
# TODO: is this reported upstream (on AUR?)
|
2021-05-14 13:39:17 +02:00
|
|
|
depends+=('plasma-framework')
|
2021-06-12 20:47:54 +02:00
|
|
|
depends+=('holo' 'git' 'base')
|
2021-06-15 20:49:47 +02:00
|
|
|
depends+=('de-p1st-wallpaper')
|
2021-05-14 13:39:17 +02:00
|
|
|
|
2021-05-14 12:51:26 +02:00
|
|
|
makedepends=('git')
|
2021-05-14 13:48:13 +02:00
|
|
|
install='.install'
|
2021-05-14 12:51:26 +02:00
|
|
|
source=("git+${url}.git")
|
|
|
|
sha256sums=('SKIP')
|
2021-06-15 15:17:52 +02:00
|
|
|
provides=('de-p1st-sddm-theme' 'de-p1st-sddm-theme-onscreenkeyboard-support')
|
|
|
|
conflicts=('de-p1st-sddm-theme' 'de-p1st-sddm-theme-onscreenkeyboard-support')
|
2021-05-14 12:51:26 +02:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${_reponame}/pkg/${pkgname}"
|
|
|
|
|
|
|
|
install -Dm0644 p1st-theme.conf "$pkgdir"/etc/sddm.conf.d/p1st-theme.conf
|
2021-05-14 13:39:17 +02:00
|
|
|
|
2021-06-15 20:49:47 +02:00
|
|
|
# Replace theme background:
|
|
|
|
# Add symlink to background of "de-p1st-wallpaper"
|
2021-06-15 20:55:01 +02:00
|
|
|
install -dm0755 "$pkgdir"/usr/share/holo/files/"$pkgname"/usr/share/sddm/themes/Nordic/assets/
|
2021-06-15 20:49:47 +02:00
|
|
|
ln -s /usr/share/backgrounds/de-p1st.jpg "$pkgdir"/usr/share/holo/files/"$pkgname"/usr/share/sddm/themes/Nordic/assets/bg.jpg
|
|
|
|
|
2021-05-14 13:39:17 +02:00
|
|
|
# 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
|
2021-06-15 20:55:01 +02:00
|
|
|
install -Dm0544 Main.qml.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/usr/share/sddm/themes/Nordic/Main.qml.holoscript
|
2021-05-14 12:51:26 +02:00
|
|
|
}
|