blob: 05aa9cff8a1d9df4e13012f730a03a1d1e134bba (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Contributor: psykose <alice@ayaya.dev>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=gtkhash
_githash=f4409e2e7eea8c49b53748fb0f1f94cb3a527de0
pkgver=1.4_git20220303
pkgrel=1
pkgdesc="Utility for computing message digests and checksums"
url="https://gtkhash.org/"
arch="all !s390x !riscv64 !ppc64le"
# no librsvg-dev s390x riscv64, no nemo-dev pp64le
license="GPL-2.0-or-later"
makedepends="
caja-dev
cmake
glib-dev
gtk+3.0-dev
gtk-doc
libb2-dev
libgcrypt-dev
librsvg-dev
meson
nautilus-dev
nemo-dev
openssl-dev>3
thunar-dev
zlib-dev
"
checkdepends="xvfb-run" # Not running properly under CI
subpackages="
$pkgname-lang
caja-gtkhash-plugin:_caja
nautilus-gtkhash-plugin:_nautilus
nemo-gtkhash-plugin:_nemo
thunar-gtkhash-plugin:_thunar
"
source="$pkgname-$pkgver.tar.gz::https://github.com/tristanheaven/gtkhash/archive/$_githash.tar.gz"
builddir="$srcdir/$pkgname-$_githash/"
options="!check" # Disable check until failure under CI fixed
build() {
abuild-meson \
-Dblake2=true \
-Dgcrypt=true \
-Dglib-checksums=true \
-Dinternal-md6=true \
-Dlibcrypto=true \
-Dlinux-crypto=true \
-Dzlib=true \
-Dnative-file-chooser=true \
-Dappstream=true \
-Dbuild-gtkhash=true \
-Dbuild-caja=true \
-Dbuild-nautilus=true \
-Dbuild-nemo=true \
-Dbuild-thunar=true \
. output
meson compile -C output
}
# https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/31622#note_220087
check() {
xvfb-run meson test --no-rebuild -C output
}
_caja() {
pkgdesc="$pkgdesc (caja plugin)"
amove usr/lib/caja
amove usr/share/caja
}
_nautilus() {
pkgdesc="$pkgdesc (nautilus plugin)"
amove usr/lib/nautilus
}
_nemo() {
pkgdesc="$pkgdesc (nemo plugin)"
amove usr/lib/nemo
}
_thunar() {
pkgdesc="$pkgdesc (thunar plugin)"
amove usr/lib/thunarx-3
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
897449187d8268a2096d4fdff649b7e63b8ee2375305f4896d7f16ab186da6345e034706e77078407f7de0bfb826ac51c23ab2e82414802f16eb22eeed7fa231 gtkhash-1.4_git20220303.tar.gz
"
|