1 # Contributor: Nezmer <Nezmer@gmail.com>
6 pkgdesc="Electronic Encyclopedia which can view and search books in .th or .bok formats. It also includes 'Othman Quran Browser' which displays Quranic text in Othmani script style."
8 url="http://thwab.ojuba.org"
10 depends=('pygtk' 'sqlite3' 'mdbtools-devel')
12 source=(http://www.ojuba.org/downloads/$pkgname/${pkgname}-${pkgver}.tar.bz2)
13 install=${pkgname}.install
14 md5sums=('8bd7d05ca4aca0e32b45ece9953aeb8e')
18 cd ${srcdir}/${pkgname}-${pkgver}/
19 sed -i 's| c.execute(\"END TRANSACTION;\")|#c.execute(\"END TRANSACTION;\")|' ${srcdir}/${pkgname}-${pkgver}/${pkgname}/ThwabShamelaImport.py
21 python setup.py install --prefix=/usr --root=${pkgdir}
22 install -D -m644 othman-128.png ${pkgdir}/usr/share/icons/othman.png
23 install -D -m644 $pkgname.svg ${pkgdir}/usr/share/icons/$pkgname.svg
24 install -D -m644 SimplifiedNaskh.ttf ${pkgdir}/usr/share/fonts/ttf-$pkgname/SimplifiedNaskh.ttf
25 install -D -m644 $pkgname.keys ${pkgdir}/usr/share/mime-info/$pkgname.keys
26 install -D -m644 $pkgname.mime ${pkgdir}/usr/share/mime-info/$pkgname.mime
27 install -D -m644 LICENSE-en ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
28 install -D -m644 $pkgname.desktop ${pkgdir}/usr/share/applications/$pkgname.desktop
29 install -D -m644 othman.desktop ${pkgdir}/usr/share/applications/othman.desktop