1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
6 pkgdesc="A cross-platform application for displaying and navigating events on a timeline."
8 url="http://thetimelineproj.sourceforge.net/"
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"
18 md5sums=('abdbc8fcaa4bce45723644df408dad71'
19 'df26b7f1fbe00c8a1722118363d8136c')
22 cd "$srcdir/$pkgname-$pkgver"
25 sed -i "s|\(_ROOT = \).*|\1\"/usr/share/$pkgname\"|" timelinelib/paths.py
28 sed -i "s|\(env python\).*|\12|" $pkgname.py
34 cd "$srcdir/$pkgname-$pkgver"
37 install -d "$pkgdir"/usr/{bin,lib/python2.7/site-packages/,share/{applications,locale,pixmaps,$pkgname}}
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
47 cat << EOF >> "$pkgdir/usr/bin/$pkgname"
49 cd /usr/lib/python2.7/site-packages && python2 timeline.py
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: