summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1da4da8d036e8c88794de0862f442df1c466085 (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
# Maintainer: Gabriele Musco <gabmus@disroot.org>
# Upstream URL: https://gitlab.gnome.org/gabmus/hydrapaper

pkgname=hydrapaper-no-pandoc-git
pkgver=3.3.1.r0.g876d292
pkgrel=1
pkgdesc="Wallpaper manager with multi monitor support (without pandoc dependency, this disables the man page)"
arch=('any')
url="https://hydrapaper.gabmus.org"
license=('GPL3')
depends=('gtk4' 'libadwaita' 'dbus-python' 'python-gobject' 'python-pillow')
makedepends=('git' 'gobject-introspection' 'meson' 'blueprint-compiler')
checkdepends=('appstream')
provides=("${pkgname%-no-pandoc-git}")
conflicts=("${pkgname%-no-pandoc-git}")
source=("${pkgname%-no-pandoc-git}::git+https://gitlab.gnome.org/GabMus/HydraPaper.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-no-pandoc-git}"
  git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

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

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