summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b5fd51211e560b51b360a83e93f1e3e4c4dbf2a (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: fossdd <fossdd@pwned.life>
pkgname=gmobile-git
_pkgname=gmobile
pkgver=0.1.0.r21.0a1af70
pkgrel=2
pkgdesc="Functions useful in mobile related, glib based projects"
arch=('x86_64')
url="https://gitlab.gnome.org/World/Phosh/gmobile"
license=('GPL-3.0')
depends=('glib2' 'json-glib' 'gobject-introspection')
makedepends=('git' 'meson')
provides=($_pkgname)
conflicts=($_pkgname)
source=("git+$url.git")
md5sums=('SKIP')

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

build() {
	arch-meson $_pkgname _build
	meson compile -C _build
}

check() {
	meson test -C _build
}

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