summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6cd0e2488acaaf034b2ef14dcf61cf37e2b09a8c (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
# Maintainer: musiclover <musiclover382@protonmail.com>

pkgname=dynamic-wallpaper-git
pkgver=0.0.1.r2.g20101d1
pkgrel=2
pkgdesc='Dynamic wallpaper maker for Gnome 42'
url='https://github.com/dusansimic/dynamic-wallpaper'
arch=('any')
license=('GPL2')
depends=('gtk4' 'libadwaita' 'python3')
makedepends=('meson' 'git')
checkdepends=('appstream-glib')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
	cd ${pkgname%-git}
	git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	arch-meson ${pkgname%-git} build
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs
}

package() {
	meson install -C build --destdir "$pkgdir"
}