# Maintainer: Sebin Nyshkim pkgbase='sebin-dynamic-wallpaper' pkgname=($pkgbase{,-kde}) pkgver=1.0.6 pkgrel=1 pkgdesc="A dynamic wallpaper of Sebin that changes throughout the day" arch=('any') license=('unknown') url="https://gitlab.com/SebinNyshkim/$pkgbase" source=( "sebin-dyn_wallpaper1-hires.png" "sebin-dyn_wallpaper2-hires.png" "sebin-dyn_wallpaper3-hires.png" "sebin-dyn_wallpaper4-hires.png" "sebin-dyn_wallpaper5-hires.png" "sebin-dyn_wallpaper6-hires.png" "sebin-dyn_wallpaper7-hires.png" "sebin-timed.xml" "sebin.xml" ) sha256sums=( "43589acd4ffccd98e84717638211b9705a303502ca0048ab655e884731f0e14e" "dcb3d4944e4c3a3ff98a55e7f55700f14532f7fc5fa29c6155c769e8fac23247" "1a2f6cc8ec4a1f2c1e0b2aaa7b4974d6b19e1ad826bc64a01d685aebaef482e5" "31ea606c1a124001f61b5ce939f74ff055c3739e6c14886d139e4b3f818c2f38" "c8d392831c5ba39ca2e7d8d69d5f3f1337b2e79275b953f10f7cf97beaf575cc" "7117a941ae7a41d431de4c39d306b1176df8810c7700c492a44c1174580603fc" "a8b5bf5fb0b0a88b5f46df530b72c81f55546de9ecc30c58ce9d536b5d35cf4e" "708c2e0d813803a0558b5a7ed5506aa1f2dbb0cd7f0e4344caa516c7015cd8bf" "a49d61bd0872fafd8e9a16c3b1d9f656dfcc56184f0ea9fa527fb41bb939a706" ) build() { makedepends=('plasma5-wallpapers-dynamic') kdynamicwallpaperbuilder "sebin-kdynamicwallpaperbuilder.json" --output "sebin-dyn_wallpaper.avif" --speed 10 source+=("sebin-dyn_wallpaper.avif") sha256sums+=(${sha256sum "sebin-dyn_wallpaper.avif"}) } package_sebin-dynamic-wallpaper() { install -Dm644 *.png -t "$pkgdir/usr/share/backgrounds/$pkgname/" install -Dm644 "sebin-timed.xml" "$pkgdir/usr/share/backgrounds/$pkgname/sebin-timed.xml" install -Dm644 "sebin.xml" "$pkgdir/usr/share/gnome-background-properties/sebin.xml" } package_sebin-dynamic-wallpaper-kde() { depends=(plasma5-wallpapers-dynamic) install -Dm644 "sebin-dyn_wallpaper.avif" -t "$pkgdir/usr/share/backgrounds/$pkgname/" }