updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / timeline / PKGBUILD
blobd0361524556edd4fdf1eb1542bbd2e529ee16f32
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=timeline
4 pkgver=0.15.0
5 pkgrel=1
6 pkgdesc="A cross-platform application for displaying and navigating events on a timeline."
7 arch=(any)
8 url="http://thetimelineproj.sourceforge.net/"
9 license=('GPL')
10 depends=('wxpython')
11 makedepends=('scons' 'python-markdown')
12 optdepends=('python2-pysvg: export in svg'
13             'python-markdown: view help pages'
14             'python2-icalendar: ics support')
15 install="$pkgname.install"
16 source=("http://downloads.sourceforge.net/project/thetimelineproj/thetimelineproj/$pkgver/$pkgname-$pkgver.zip"
17         "$pkgname.desktop")
18 md5sums=('abdbc8fcaa4bce45723644df408dad71'
19          'df26b7f1fbe00c8a1722118363d8136c')
21 build() {
22   cd "$srcdir/$pkgname-$pkgver"
24   # path fix
25   sed -i "s|\(_ROOT = \).*|\1\"/usr/share/$pkgname\"|" timelinelib/paths.py
27   # python2 fix
28   sed -i "s|\(env python\).*|\12|" $pkgname.py
30   scons
33 package() {
34   cd "$srcdir/$pkgname-$pkgver"
36   # prepare dirs
37   install -d "$pkgdir"/usr/{bin,lib/python2.7/site-packages/,share/{applications,locale,pixmaps,$pkgname}}
39   # data and libs
40   cp -a timeline* "$pkgdir/usr/lib/python2.7/site-packages"
41   cp -a po/*[^pot] "$pkgdir/usr/share/locale"
42 # cp -a man "$pkgdir/usr/share" : gone
43   cp -a icons "$pkgdir/usr/share/$pkgname"
44 # help_resources : gone
46   # bin
47   cat << EOF >> "$pkgdir/usr/bin/$pkgname"
48 #!/bin/bash
49 cd /usr/lib/python2.7/site-packages && python2 timeline.py
50 EOF
51   chmod +x "$pkgdir/usr/bin/$pkgname"
53   # desktop file and icon
54   install -Dm644 icons/48.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
55   install -Dm644 ../$pkgname.desktop "$pkgdir/usr/share/applications"
58 # vim:set ts=2 sw=2 et: