summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91b671ec5ee670485d9056debf4f4c8924b9f4b3 (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=3.37.1.r117.g0d76878
pkgrel=1
pkgdesc="A guided tour and greeter for GNOME"
arch=(x86_64)
url="https://gitlab.gnome.org/GNOME/${pkgname%-git}"
license=('GPL')
depends=('libhandy1')
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
}

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