summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4243c8555bbda87650963649fa78d92fb7365c20 (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.38.0.r0.g76a9159
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
}