# Contributor: Matthew T Hoare <matthew.t.hoare@gmail.com>
# Maintainer: Matthew T Hoare <matthew.t.hoare@gmail.com>
pkgname=azote
pkgver=1.12.7
pkgrel=0
pkgdesc="Wallpaper and colour manager for Sway, i3 and other window managers"
url="https://github.com/nwg-piotr/azote"
arch="noarch"
license="GPL-3.0-or-later AND BSD-3-Clause"
depends="
	feh
	gtk+3.0
	py3-cairo
	py3-gobject3
	py3-pillow
	py3-send2trash
	python3
	xrandr
	"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
options="!check" # no checks
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nwg-piotr/azote/archive/v$pkgver.tar.gz"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl

	install -Dm755 dist/azote "$pkgdir"/usr/bin/azote
	install -D -t "$pkgdir"/usr/share/icons/hicolor/scalable/apps/azote.svg dist/azote.svg
	install -D -t "$pkgdir"/usr/share/"$pkgname" dist/indicator_active.png
	install -D -t "$pkgdir"/usr/share/"$pkgname" dist/indicator_attention.png
	install -D -t "$pkgdir"/usr/share/applications dist/azote.desktop
}

sha512sums="
60a3851108f9e84743181c03a40e658dceca5abdac30665de8d6727b53a3a41101d1b10e7d92b29b511d081d86168fe9e298f7dfed0d2b4e4f360d51e0dc16bc  azote-1.12.7.tar.gz
"
