# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=granite
pkgver=6.2.0
pkgrel=1
pkgdesc="Library that extends GTK with common widgets and utilities"
url="https://github.com/elementary/granite"
arch="all"
license="LGPL-3.0-or-later"
depends="
	gsettings-desktop-schemas
	hicolor-icon-theme
	"
makedepends="
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	libgee-dev
	meson
	sassc
	vala
	"
subpackages="
	$pkgname-dev
	$pkgname-lang
	"
source="https://github.com/elementary/granite/archive/$pkgver/granite-$pkgver.tar.gz"
options="!check"  # no tests provided

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

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

dev() {
	default_dev

	amove usr/bin/granite-demo
	amove usr/share/applications/io.elementary.granite.demo.desktop
}

sha512sums="
4d9c21a653505812c8d99508166b411d1931bd251bf51c4bff8e6a0d905b5efc60832f3e7fbf6f8d52b67b55edf299969865542db33a8276b90e05b3b4731a87  granite-6.2.0.tar.gz
"
