1 # Maintainer: Bartlomiej Piotrowski <barthalion@gmail.com>
2 # Contributor: Thomas Mudrunka <harvie@@email..cz>
7 pkgdesc="decentralized instant messenger built on top of the Tor Network"
10 url="http://code.google.com/p/torchat/"
11 depends=('tor' 'python2' 'wxpython')
12 source=("http://torchat.googlecode.com/files/${pkgname}-source-${pkgver}.zip"
15 md5sums=('802ee514e644b1459261c20367f690e5'
16 '579b4ff498ff1211960c95c1a7d1efb5'
17 '4b9f593f2fd8dcff9c0e0252e9f199a7')
20 install -d ${pkgdir}/opt/torchat/
21 cp -r ${srcdir}/src/* ${pkgdir}/opt/torchat/
23 find ${pkgdir}/opt/torchat/ -iname "*.py" | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
24 find ${pkgdir}/opt/torchat/ -iname "*.py" | xargs sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|'
25 rm ${pkgdir}/opt/torchat/portable.txt
27 install -d ${pkgdir}/usr/bin
28 cp ${srcdir}/torchat ${pkgdir}/usr/bin
30 install -d ${pkgdir}/usr/share/applications
31 install ${srcdir}/$pkgname.desktop ${pkgdir}/usr/share/applications/
33 install -d ${pkgdir}/usr/share/pixmaps
34 install ${srcdir}/src/icons/torchat.png ${pkgdir}/usr/share/pixmaps/