# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zenity
pkgver=4.0.5
pkgrel=0
pkgdesc="Display dialog boxes from the command line and shell scripts"
url="https://gitlab.gnome.org/GNOME/zenity"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	help2man
	intltool
	itstool
	libadwaita-dev
	libxml2-utils
	meson
	"
options="!check" # no tests
subpackages="$pkgname-dbg $pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/zenity/${pkgver%.*}/zenity-$pkgver.tar.xz"

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

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

sha512sums="
534cc68a766de916bb6057a9bda6fd8df0d891c9b9675e381045ab884052cfd18cd509638260031eaf308e401c6f1bb64aa7df491d32abb6e1a22c5e27419540  zenity-4.0.5.tar.xz
"
