# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=ghex
pkgver=46.2
_pkgver=${pkgver%.*}
pkgrel=0
pkgdesc="A hex editor for GNOME"
url="https://wiki.gnome.org/Apps/Ghex"
arch="all"
license="GPL-2.0-or-later"
depends="dconf"
makedepends="
	at-spi2-core-dev
	desktop-file-utils
	glib-dev
	gtk4.0-dev
	itstool
	libadwaita-dev
	meson
	"
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/ghex/$_pkgver/ghex-$pkgver.tar.xz"

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
4130d115c5f644582af03917a0b2eacdb6fd989709f3f5e6676b85c698f2989dc8bdd7f971a348d54836d2609c7bee935868933edaadcdd4fdfa19ba874dbbdc  ghex-46.2.tar.xz
"
