1 # Contributor: mutlu_inek <mutlu_inek@yahoo.de>
6 pkgdesc="An open Quranic platform aimed to ease access to the Holy Quran for reading, \
7 translating, or researching."
8 url="http://zekr.org/quran/quran-for-linux"
10 arch=('i686' 'x86_64')
11 depends=('java-runtime' 'firefox')
12 optdepends=('flashplugin: Enable Audio Recitations')
13 # Sources abd nd5sums for i686
14 [ "$CARCH" = "i686" ] && source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-linux.tar.gz $pkgname.desktop)
15 [ "$CARCH" = "i686" ] && md5sums=('4727c8b06d6341a2f2f6e552012656c8' 'c82122b0b8766412fc152dd7cb5f176e')
16 # Sources and md5sums for x86_64
17 [ "$CARCH" = "x86_64" ] && source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-linux_64.tar.gz $pkgname.desktop)
18 [ "$CARCH" = "x86_64" ] && md5sums=('92da4b994a70035d4dedef7217646307' 'c82122b0b8766412fc152dd7cb5f176e')
22 mkdir -p $startdir/pkg/usr/share/java/$pkgname
23 cp -r $startdir/src/$pkgname $startdir/pkg/usr/share/java/
24 sed -i 's|#export MOZILLA_FIVE_HOME=/usr/lib/firefox|export MOZILLA_FIVE_HOME=/usr/lib/firefox|' $startdir/src/$pkgname/zekr.sh
25 sed -i 's|DIR_NAME=`dirname $0`|DIR_NAME=/usr/share/java/zekr|' $startdir/src/$pkgname/zekr.sh
26 rm $startdir/pkg/usr/share/java/zekr/zekr.sh
27 install -D -m755 $startdir/src/$pkgname/zekr.sh $startdir/pkg/usr/bin/$pkgname.sh
28 mkdir -p $startdir/pkg/usr/share/pixmaps
29 install -D -m644 $startdir/src/$pkgname/res/image/icon/open-book-128.png $startdir/pkg/usr/share/pixmaps/$pkgname.png
30 mkdir -p $startdir/pkg/usr/share/applications
31 install -D -m755 $pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop