void-packages/srcpkgs/othman/template
2019-11-27 21:54:57 +01:00

33 lines
999 B
Bash

# Template file for 'othman'
pkgname=othman
version=0.6.0
revision=1
archs=noarch
build_style=python3-module
pycompile_module="othman"
hostmakedepends="python3 ImageMagick sqlite intltool"
depends="gtk+3 python3-gobject amiri-font"
short_desc="Quran browser and search engine "
maintainer="John <johnz@posteo.net>"
license="WAQFv2"
homepage="https://github.com/ojuba-org/othman/"
distfiles="https://github.com/ojuba-org/othman/archive/${version}.tar.gz"
checksum=5a40ca72496b5b28e82206904b92721fe5f6e42c4741bdc08220b2289afe4fd1
repository=nonfree
pre_build() {
sed -i 's|python gen-index|python2 gen-index|' Makefile
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
}