summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf6861c82600a36f0e3c21250d0650d0b288f0ee (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
pkgname=gnome-tour-git
pkgver=43.beta.r0.ged523b7
pkgrel=1
pkgdesc="A guided tour and greeter for GNOME"
arch=(x86_64)
url="https://gitlab.gnome.org/GNOME/${pkgname%-git}"
license=('GPL')
depends=('libadwaita')
makedepends=('rust' 'meson' 'git')
checkdepends=('appstream-glib')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=("git+$url")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --long --tags | sed '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"
}