# Template file for 'othman'
pkgname=othman
version=1.0.0
revision=1
build_style=python3-module
hostmakedepends="python3 python3-setuptools ImageMagick sqlite intltool"
depends="gtk+3 python3-gobject amiri-font"
short_desc="Quran browser and search engine"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:WAQFv2"
homepage="https://github.com/ojuba-org/othman/"
distfiles="https://github.com/ojuba-org/othman/archive/${version}.tar.gz"
checksum=2938b874146d3453b20d9cd96db7381bc3472943d4fca6eb16f28700a5ac0065
repository=nonfree

pre_build() {
	make icons
	make Othman.desktop
	make othman-data/ix.db
}

post_install() {
	vinstall Othman-128.png 644 usr/share/icons/128x128/apps/ Othman.png
	for _i in 96 72 64 48 36 32 24 22 16 ; do
		vinstall icons/Othman-${_i}.png 644 usr/share/icons/${_i}x${_i}/apps/ Othman.png
	done
	vinstall Othman.desktop 644 usr/share/applications/
	vlicense LICENSE-ar.txt
	vlicense LICENSE-en
}
