summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d6fdfd625ef808afb07efceba596796f7bfcd9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Christophe LAVIE <christophe.lavie@laposte.net>

pkgbase='dynamic-wallpaper-mojave'
pkgname=("${pkgbase}-gnome-timed-git" "${pkgbase}-kde-git" "${pkgbase}-images-git" )
_gitname='gnome-kde-dynamic-wallpaper-mojave'
pkgver=6.2.r3.gb625254
pkgrel=1
arch=('any')
url="https://github.com/japamax/${_gitname}"
source=("git+https://github.com/japamax/${_gitname}")
sha256sums=('SKIP')

pkgver() {
  cd $_gitname
  git describe --tags --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

 package_dynamic-wallpaper-mojave-images-git() {
	pkgdesc="macOS Mojave dynamic wallpaper based 16 images"
	cd "${srcdir}/${_gitname}"
	install -dm755 "${pkgdir}/usr/share/dynamicwallpapers/mojave-solar/contents/images"
	install -m644 ${srcdir}/${_gitname}/mojave/* "${pkgdir}/usr/share/dynamicwallpapers/mojave-solar/contents/images"
}

 package_dynamic-wallpaper-mojave-gnome-timed-git() {
	depends=(gnome-shell gnome-backgrounds dynamic-wallpaper-mojave-images-git)
	pkgdesc="Time based GNOME macOS Mojave wallpaper with real scheludes"
	install=dynamic-wallpaper-mojave-gnome-timed-git.install
	cd "${srcdir}/${_gitname}"
	install -dm755 "${pkgdir}/usr/share/backgrounds/macOS"
	ln -s "/usr/share/dynamicwallpapers/mojave-solar/contents/images" "${pkgdir}/usr/share/backgrounds/macOS/mojave"
	install -Dm644 mojave-timed.xml "${pkgdir}/usr/share/backgrounds/macOS/mojave-timed.xml"
	install -Dm644 mojave.xml "${pkgdir}/usr/share/gnome-background-properties/mojave.xml"
 }
 
 package_dynamic-wallpaper-mojave-kde-git() {
	depends=('plasma5-wallpapers-dynamic>=2.3' dynamic-wallpaper-mojave-images-git)
	pkgdesc="Azimuth Elevation based / Time based KDE macOS Mojave wallpaper"
	install=dynamic-wallpaper-mojave-kde-git.install
	cd "${srcdir}/${_gitname}"
	install -dm755 "${pkgdir}/usr/share/dynamicwallpapers/mojave-timed/contents"
	ln -s "/usr/share/dynamicwallpapers/mojave-solar/contents/images" "${pkgdir}/usr/share/dynamicwallpapers/mojave-timed/contents/images"
	install -Dm644 mojave-solar.json "${pkgdir}/usr/share/dynamicwallpapers/mojave-solar/metadata.json"
	install -Dm644 mojave-timed.json "${pkgdir}/usr/share/dynamicwallpapers/mojave-timed/metadata.json"
 }