# Template file for 'nwg-look'
pkgname=nwg-look
version=1.1.1
revision=1
build_style=go
go_import_path=github.com/nwg-piotr/nwg-look
hostmakedepends="pkg-config"
makedepends="cairo-devel gtk+3-devel libglib-devel pango-devel"
depends="xcur2png"
short_desc="GTK settings editor adapted to work in the wlroots environment"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/nwg-piotr/nwg-look"
changelog="https://github.com/nwg-piotr/nwg-look/releases"
distfiles="https://github.com/nwg-piotr/nwg-look/archive/refs/tags/v${version}.tar.gz"
checksum=568c5efe443892d74ffce6cf8ac7db2aea6071be70d97d3ba7c5efd8b351e601

post_install() {
	vinstall stuff/main.glade 644 /usr/share/nwg-look
	vinstall stuff/nwg-look.desktop 644 /usr/share/applications
	vinstall stuff/nwg-look.svg 644 /usr/share/pixmaps

	for lang in langs/*.json; do
		vinstall ${lang} 644 /usr/share/nwg-look/langs
	done

	vlicense LICENSE
}
