summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 632eee068b9994c1b20102155e203ea0ff42644c (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: Rafael Fontenelle <rafaelff@gnome.org>

_name=gnome-2048
pkgname=$_name-git
pkgver=3.37.1.r5.g4fc9c07
pkgrel=1
pkgdesc="Obtain the 2048 tile"
arch=(x86_64)
url="https://wiki.gnome.org/Apps/2048"
license=(GPL)
depends=(clutter-gtk libgnome-games-support)
makedepends=(git meson appstream-glib yelp-tools vala)
provides=($_name)
conflicts=($_name)
source=("git+https://gitlab.gnome.org/GNOME/$_name.git")
md5sums=('SKIP')

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

build() {
  arch-meson $_name build
  meson compile -C build
}

check() {
  meson test -C build
}

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