1 # Maintainer: Garrett <floft.net/contact>
5 pkgdesc="Church presentation software."
7 url='http://openlp.org/'
9 depends=('qt' 'python2' 'python2-pyqt' 'python2-distribute' 'phonon' 'python2-chardet'
10 'python-lxml' 'python-beautifulsoup' 'python2-sqlalchemy' 'python2-sip'
11 'python-pysqlite-legacy' 'python2-pyenchant' 'python-mako' 'python2-migrate')
12 optdepends=('libreoffice-impress: display impress presentations')
13 install=openlp.install
14 source=(http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/OpenLP-$pkgver.tar.gz openlp.sh)
15 md5sums=('7396d7293386688d0e731de6f17eecce'
16 'bb78637dd085de567dc8aea8699939bf')
17 sha256sums=('b3e8d230fde75468d52ae35cf09dd6af2ff63725f2426d6d7278af8854bf12f1'
18 'c85060eeb512410b8b9b9a3a638c70006f45ded0e4b551fc7135fdcd2ff915d5')
21 cd "$srcdir/OpenLP-$pkgver"
22 python2 setup.py install --root="$pkgdir/" --optimize=1
23 mv "$pkgdir/usr/bin/openlp"{.pyw,}
25 echo "$pkgver" > "$pkgdir/usr/lib/python2.7/site-packages/openlp/.version"
27 install -Dm0755 "$srcdir/openlp.sh" "$pkgdir/etc/profile.d/openlp.sh"
28 install -Dm0644 "resources/openlp.desktop" "$pkgdir/usr/share/applications/openlp.desktop"
29 install -Dm0644 "resources/images/openlp-logo.svg" "$pkgdir/usr/share/pixmaps/openlp.svg"
30 install -Dm0644 "resources/images/openlp-logo-48x48.png" "$pkgdir/usr/share/pixmaps/openlp.png"
33 tsrcdir="$srcdir/OpenLP-$pkgver/resources/i18n"
34 tdestdir="$pkgdir/usr/share/$pkgname/i18n"
39 lconvert -i "$file" -o "$tdestdir/${file%%ts}qm"