summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e25e1def9d07ca80797a654a11f688880cf5f3b (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
35
36
37
38
39
40
41
42
43
# Maintainer: Philip Goto <philip.goto@gmail.com>

pkgname=libhandy-git
pkgver=1.5.90.r0.gc09c150
pkgrel=1
pkgdesc='Library full of GTK+ widgets for mobile phones'
url='https://gitlab.gnome.org/GNOME/libhandy'
license=(LGPL)
arch=(x86_64 aarch64)
depends=(gtk3)
makedepends=(
	gi-docgen
	git
	glade
	gobject-introspection
	meson
	vala
)
checkdepends=(xorg-server-xvfb)
provides=(libhandy libhandy-1.so)
conflicts=(libhandy)
source=("git+$url.git")
b2sums=('SKIP')

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

build() {
	arch-meson libhandy build -D gtk_doc=true -D examples=false
	meson compile -C build
}

check() {
	dbus-run-session xvfb-run \
		-s '-screen 0 1920x1080x24 -nolisten local' \
		meson test -C build --print-errorlogs
}

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