updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / thwab / PKGBUILD
blob89b0504c4a2e4e94817bd5057d19481d73c7f1f6
1 # Contributor: Nezmer <Nezmer@gmail.com>
3 pkgname=thwab
4 pkgver=2.2.3
5 pkgrel=3
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."
7 arch=('i686' 'x86_64')
8 url="http://thwab.ojuba.org"
9 license=(custom:Waqf)
10 depends=('pygtk' 'sqlite3' 'mdbtools-devel')
11 makedepends=()
12 source=(http://www.ojuba.org/downloads/$pkgname/${pkgname}-${pkgver}.tar.bz2)
13 install=${pkgname}.install
14 md5sums=('8bd7d05ca4aca0e32b45ece9953aeb8e')
16 build() {
18   cd ${srcdir}/${pkgname}-${pkgver}/
19   sed -i 's| c.execute(\"END TRANSACTION;\")|#c.execute(\"END TRANSACTION;\")|' ${srcdir}/${pkgname}-${pkgver}/${pkgname}/ThwabShamelaImport.py
20   python setup.py build
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