blob: 10fe02d17cbfda4d44392c13dc551242e778a8aa (
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.12
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=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/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="f83675179e7cc587c36d2bf4e57dc6254609c607af38f2d3392d8234d58de228f63f96782dcd96fcf61f94c0bd7a71f94790ea0fecacace7aec952279a2e25c8 libhandy-v0.0.12.tar.gz
e67a51b2985d27f1ed259773060e7df1430f7529f6cef69b1a240f97bfdccb73bd97303b96e209daa2ff7d31094f290986a663d4c7919b4799ec333b8e06a83f skip-test.patch"
|