blob: 499f6128d93392dcfa9913df2a6a40407d0f217d (
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
|
# Maintainer: Sam Burgos < santiago dot burgos1089 at gmail dot com >
# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Jan Böhringer <janboe@gmail.com>
# Contributor: Frédérik Paradis <fredy_14@live.fr>
# Contributor: GI_Jack <GI_Jack@hushmail.com>
pkgname=gtkhash-thunar
pkgver=1.5
pkgrel=3
pkgdesc="A GTK+ utility for computing message digests or checksums (Gtkhash with Thunar filemanager plugin)"
arch=('x86_64')
url="https://github.com/tristanheaven/gtkhash"
license=('GPL')
depends=(
'dconf'
'gtk3'
'libb2'
'libgcrypt'
'nettle'
'thunar'
)
makedepends=(
'appstream-glib'
'intltool'
'librsvg'
'meson'
'xdg-utils'
)
provides=(
gtkhash
${pkgname}
)
conflicts=(
gtkhash
gtkhash-caja
gtkhash-nautilus
gtkhash-nemo
)
source=("${url}/releases/download/v$pkgver/gtkhash-$pkgver.tar.xz")
sha256sums=('7102a192eca3e82ed67a8252a6850440e50c1dbea7c6364bda154ec80f8ff005')
prepare() {
mkdir -p plugins
}
build() {
arch-meson "gtkhash-$pkgver" build \
-Dglib-checksums='true' \
-Dlinux-crypto='true' \
-Dnettle='true' \
-Dbuild-caja='false' \
-Dbuild-nautilus='false' \
-Dbuild-nemo='false' \
-Dbuild-thunar='true'
meson compile -C build
}
check() {
desktop-file-validate build/data/*.desktop
appstream-util validate-relax --nonet build/data/appdata/*.appdata.xml
appstream-util validate-relax --nonet build/data/appdata/*.metainfo.xml
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dm644 build/data/appdata/org.gtkhash.thunar.metainfo.xml -t \
"$pkgdir/usr/share/metainfo/"
# install -Dm644 plugins/thunarx-3/libgtkhash-properties-thunar.so -t \
# "$pkgdir/usr/lib/thunarx-3/"
}
|