aboutsummaryrefslogtreecommitdiffstats
path: root/community/libhandy/APKBUILD
blob: b9e6de1b68526930750915fa3a03bec64ba6708f (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libhandy
pkgver=0.0.13
pkgrel=0
pkgdesc="Library full of GTK+ widgets for mobile phones"
url="https://source.puri.sm/Librem5/libhandy"
arch="all !s390x" # Limited by 'ibus'
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"
source="https://source.puri.sm/Librem5/libhandy/-/archive/v$pkgver/libhandy-v$pkgver.tar.gz
	skip-test.patch"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=debugoptimized \
		-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/lib "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
	mv "$pkgdir"/usr/share/glade/catalogs "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/lib/glade/modules "$subpkgdir"/usr/share
}

sha512sums="b9eaef775a93c200aa3f526b627827ed4530ff2a4c826ab24abdbd944075c0939232bd2c3388b8b8e34c6729cb11017a7af2bd3ff9eec78fbdc7e7dd9f11d24b  libhandy-v0.0.13.tar.gz
e67a51b2985d27f1ed259773060e7df1430f7529f6cef69b1a240f97bfdccb73bd97303b96e209daa2ff7d31094f290986a663d4c7919b4799ec333b8e06a83f  skip-test.patch"