updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / openlp / PKGBUILD
blobf59d1e966e034dc3de31f5bfa7a6bcb03ed8af21
1 # Maintainer: Garrett <floft.net/contact>
2 pkgname=openlp
3 pkgver=1.9.8
4 pkgrel=2
5 pkgdesc="Church presentation software."
6 arch=('any')
7 url='http://openlp.org/'
8 license=('GPLv2')
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')
20 build() {
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"
32   #translations
33   tsrcdir="$srcdir/OpenLP-$pkgver/resources/i18n"
34   tdestdir="$pkgdir/usr/share/$pkgname/i18n"
35   mkdir -p "$tdestdir"
36   cd "$tsrcdir"
37   
38   for file in *.ts; do
39     lconvert -i "$file" -o "$tdestdir/${file%%ts}qm"
40   done