aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libhandy/APKBUILD
blob: bc9f7afad10725b03540637dd08c18b9e2d74ed4 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libhandy
pkgver=0.0.11
pkgrel=0
pkgdesc="Library full of GTK+ widgets for mobile phones"
url="https://source.puri.sm/Librem5/libhandy"
arch="all"
license="LGPL-2.0-or-later"
makedepends="meson glib-dev gtk+3.0-dev vala py3-setuptools gobject-introspection-dev
	glade-dev"
checkdepends="xvfb-run ibus"
subpackages="$pkgname-dev:_dev"
source="https://source.puri.sm/Librem5/libhandy/-/archive/v$pkgver/libhandy-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Dexamples=true \
		. output
	ninja -C output
}

check() {
	xvfb-run ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

_dev() {
	default_dev

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

sha512sums="af415917905bedbe33abfc613e9c3eeaaffe22ef142bb39236d2ff5f78dd3487355f8f9232b616523508a3da0cbcf31470c50fa208e383c688148e12dac89dc6  libhandy-v0.0.11.tar.gz"