SUMMARY="Quran interpretation data from KSU-Electronic Mosshaf project"
DESCRIPTION="Ayat data is use by other project like elforkane and mtafsir \
get from original project to minimize maintenance .
contain tafsir database:
 * ar_muyassar.db
 * sa3dy.db
 * baghawy.db
 * katheer.db
 * qortoby.db
 * tabary.db
 * tafheem.db
 * waseet.db
 * tanweer.db
 * russian.db
 * e3rab.db
 * indonesian.db
 * tafheem.db
noted that the file is derivation from project tanzil.net"
HOMEPAGE="http://quran.ksu.edu.sa/ayat/"
COPYRIGHT="2014-2019 King Saud University
	2008-2016 Tanzil.net team"
LICENSE="Creative Commons Attribution 3.0"
REVISION="1"
SOURCE_URI="http://quran.ksu.edu.sa/ayat/tafasir.ayt"
CHECKSUM_SHA256="1e96839de6ee8103ec19167f1e9668b9c44084cd0a4e7d7a33d1e05aa4e9b05d"
SOURCE_DIR="tafasir"

ARCHITECTURES="any"

PROVIDES="
	ayat_tafasir_data
	mtafsir_data
	elforkane_data
	"
REQUIRES="
	haiku
	"

BUILD_PREREQUIRES="
	cmd:find
	"

BUILD()
{
	mkdir -p "$dataDir/ayat/tafasir"
	find . -name '*.ayt' -exec sh -c 'mv "$0" "${0%.ayt}.db"' {} \;
	cp *.db $dataDir/ayat/tafasir/
	cat << EOF > $dataDir/ayat/tafasir/tafasirInfo
ar_muyassar.db,التفسير الميسر
baghawy.db,تفسير البغوي
e3rab.ayt,Qasim Da'aas
indonesian.db,Bahasa Indonesia
katheer.db,تفسير ابن كثير
qortoby.db,تفسير القرطبي
russian.db,Russian languange
sa3dy.db,تفسير السعدي
tabary.db,تفسير الطبري
tafheem.db,ابوالاعلی مودودی
tanweer.db,التحرير والتنوير
waseet.db,Al-Waseet
EOF
}
