1 # Maintainer: CaptainShanks <captainshanks@archlinux.us>
2 # Contributor: CaptainShanks <captainshanks@archlinux.us>
7 pkgdesc="A drawing program that supports annotation of pdf files. Also has rewinding feature and tabbed painting."
10 url="http://code.google.com/p/whyteboard/"
11 depends=('python2' 'wxpython')
12 optdepends=('imagemagick: convert filetypes')
13 source=(http://whyteboard.googlecode.com/files/$pkgname-$pkgver.tar.gz $pkgname.png $pkgname.desktop $pkgname.launch)
14 md5sums=('ca95a8c702c59fe2516de9a525b59658'
15 'b8a25c0c86fa97f9b400acad7a0b575b'
16 'e1cab13c3177595ce57debcf9fae2830'
17 '2ddaa71d9a0e81e9aade25afab87041c')
20 install -d ${pkgdir}/usr/{bin,lib/$pkgname,share/doc/$pkgname}
21 install -Dm755 $pkgname.launch $pkgdir/usr/bin/$pkgname
22 install -Dm644 $pkgname.desktop \
23 ${pkgdir}/usr/share/applications/$pkgname.desktop
24 install -Dm644 $pkgname.png ${pkgdir}/usr/share/icons/$pkgname.png
25 cd ${srcdir}/$pkgname-$pkgver
26 cp -r *.py $(find -maxdepth 1 -mindepth 1 -type d) ${pkgdir}/usr/lib/$pkgname
27 chmod 755 $pkgdir/usr/lib/$pkgname/$pkgname.py
28 cp *.txt ${pkgdir}/usr/share/doc/$pkgname
29 cd ${pkgdir}/usr/lib/$pkgname
30 sed -i '1s#python#python2#' $pkgname.py