summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 139e5e0ac154d1eb64ee88e57208ff40108f360d (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
# Maintainer: Philip Goto <philip.goto@gmail.com>

pkgname=libhandy-glade-catalog-disabled-git
pkgver=1.4.0.r24.g00a7d9a
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=(
	git
	gobject-introspection
	meson
	vala
)
checkdepends=(xorg-server-xvfb)
provides=(libhandy libhandy-1.so)
conflicts=(libhandy)
source=("git+$url.git")
md5sums=('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 -D glade_catalog=disabled
	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
}