summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b5e38a265b2b986e2afc7347b69d73f4d858bfd (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
# Maintainer: Danny Waser (Waser Technologies) <danny@waser.tech>

_pkgname=singularity-dynamic-wallpaper
pkgname=$_pkgname
pkgver=1.1
pkgrel=1
pkgdesc='Dynamic wallpaper for Singularity'
arch=(any)
url='https://gitlab.com/waser-technologies/images/wallpapers/singularity-dynamic-wallpaper'
license=('GPL3')
source=("$url/-/archive/$pkgver/$_pkgname-$pkgver.tar.gz")
sha256sums=('SKIP')

package() {
	_theme=singularity-spacetime
	
	export _old_installdir=/usr/share/backgrounds
	export _old_propertydir=/usr/share/gnome-background-properties
	export _new_installdir=$pkgdir/usr/share/backgrounds
	export _new_propertydir=$pkgdir/usr/share/gnome-background-properties
	
	sed -i 's|'${_old_installdir}'|'${_new_installdir}'|g' $srcdir/$_pkgname-$pkgver/install.sh
	sed -i 's|'${_old_propertydir}'|'${_new_propertydir}'|g' $srcdir/$_pkgname-$pkgver/install.sh
	
	cd $_pkgname-$pkgver
	./install.sh
	
	#remove unused files
	rm -f $pkgdir/usr/share/backgrounds/$_theme/*property*
}