summaryrefslogtreecommitdiff
path: root/community/libhandy1/APKBUILD
blob: dfc083fa8f2da02c13f8ad468d752cfd81e40c5d (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
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libhandy1
pkgver=1.6.3
pkgrel=0
pkgdesc="Library full of GTK+ widgets for mobile phones"
url="https://gitlab.gnome.org/GNOME/libhandy"
arch="all"
license="LGPL-2.0-or-later"
makedepends="
	glade-dev
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	meson
	py3-setuptools
	vala
	"
checkdepends="
	adwaita-icon-theme
	ibus
	ttf-cantarell
	xvfb-run
	"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/libhandy/${pkgver%.*}/libhandy-$pkgver.tar.xz
	"
builddir="$srcdir/libhandy-$pkgver"

build() {
	abuild-meson \
		-Dexamples=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	xvfb-run -a meson test -t 3 --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

dev() {
	default_dev

	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="
bf210bc49b512fe74438759e2b8238fbba9c8ccd57e96b7a72f484df080a407da56ffcacbef3265da8de6a1edc954d4b3d77eaddbd1f62141d41db5c17253b49  libhandy-1.6.3.tar.xz
"