build: update to split package

This commit is contained in:
Sebin Nyshkim 2022-02-11 13:40:22 +01:00
parent 6ad1568407
commit 80b7e4df8e
2 changed files with 46 additions and 4 deletions

30
.SRCINFO Normal file
View file

@ -0,0 +1,30 @@
pkgbase = sebin-dynamic-wallpaper
pkgdesc = A dynamic wallpaper of Sebin that changes throughout the day
pkgver = 1.0.5
pkgrel = 1
url = https://gitlab.com/SebinNyshkim/sebin-dynamic-wallpaper
arch = any
license = unknown
source = sebin-dyn_wallpaper1-hires.png
source = sebin-dyn_wallpaper2-hires.png
source = sebin-dyn_wallpaper3-hires.png
source = sebin-dyn_wallpaper4-hires.png
source = sebin-dyn_wallpaper5-hires.png
source = sebin-dyn_wallpaper6-hires.png
source = sebin-dyn_wallpaper7-hires.png
source = sebin-timed.xml
source = sebin.xml
sha256sums = 1ef8b717e320917cc846753029c1d6c7e30773631dd505639c7592d677e8b88e
sha256sums = b9499f4b9445681d7c1db16ab94a2e37b609f8c12069e6f1c3f63bfe51b54d1b
sha256sums = e4b6b2991743b7eabc802d47632ae506ca4d51b5a9efc631e52506b1b49a69dd
sha256sums = 19d1cd1d9034487e005f87db92ae3f51e27e5aede22d3b41296334ec959d458e
sha256sums = 4e30ccbd2d7fe416c3f8f67e4d50501fc56499b8f848edeeafd85ec848d42eda
sha256sums = ad23720ab415072c13b8d0ee49826af88f6b5511655bc1237a26d4f489b03fdc
sha256sums = 4c43328e08324cb1e000e7f198f15b61b922429c47e04d987eb551e882e48ba9
sha256sums = 708c2e0d813803a0558b5a7ed5506aa1f2dbb0cd7f0e4344caa516c7015cd8bf
sha256sums = a49d61bd0872fafd8e9a16c3b1d9f656dfcc56184f0ea9fa527fb41bb939a706
pkgname = sebin-dynamic-wallpaper
pkgname = sebin-dynamic-wallpaper-kde
depends = plasma5-wallpapers-dynamic

View file

@ -1,9 +1,9 @@
# Maintainer: Sebin Nyshkim <sebin.nyshkim@icloud.com>
pkgbase='sebin-dynamic-wallpaper'
pkgname="$pkgbase"
pkgver=1.0.2
pkgrel=2
pkgname=($pkgbase{,-kde})
pkgver=1.0.5
pkgrel=1
pkgdesc="A dynamic wallpaper of Sebin that changes throughout the day"
arch=('any')
license=('unknown')
@ -31,8 +31,20 @@ sha256sums=(
"a49d61bd0872fafd8e9a16c3b1d9f656dfcc56184f0ea9fa527fb41bb939a706"
)
package() {
build_sebin-dynamic-wallpaper-kde() {
kdynamicwallpaperbuilder "sebin-kdynamicwallpaperbuilder.json" --output "sebin-dyn_wallpaper.heic"
source+=("sebin-dyn_wallpaper.heic")
sha256sums+=(${sha256sum "sebin-dyn_wallpaper.heic"})
}
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.heic" -t "$pkgdir/usr/share/backgrounds/$pkgname/"
}