summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2fca2b74d33b38ae136da7386f65bc6c48cac660 (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
# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com>
# Contributor: tuberry <youremail@domain.com>

pkgname=gnome-shell-extension-shuzhi-git
_pkgname=shuzhi
pkgver=44.0.r3.g9a71d66
pkgrel=1
pkgdesc="A wallpaper generation extension for gnome shell, inspired by Jizhi"
arch=('any')
url="https://github.com/tuberry/shuzhi"
license=('GPL3')
depends=('gnome-shell')
makedepends=('git' 'meson')
checkdepends=('fortune-mod')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(git+$url.git)
b2sums=('SKIP')

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

build() {
  local meson_options=(
    -Dtarget=system
  )

  arch-meson $_pkgname build "${meson_options[@]}"
  meson compile -C build
}

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

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