# Contributor: psykose # Maintainer: Saijin-Naib 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 "