updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / torchat / PKGBUILD
blobe9eb8baa58893b248f11afed0e8c1c1747d22c47
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # You can also contact me on http://blog.harvie.cz/
4 pkgname=torchat
5 pkgver=0.9.9.425
6 pkgrel=3
7 pkgdesc="Messenger application on top of the Tor network and it's location hidden services. Nobody will be able to find out where you are, find out what you send/receive, to whom you are sending/receiving from and where are your contacts located. Pidgin-like."
8 arch=('any')
9 license=('GPL')
10 url="http://code.google.com/p/torchat/"
11 depends=(
12         'tor'
13         'python'
14         'wxpython'
17 source=("http://torchat.googlecode.com/files/${pkgname}-source-${pkgver}.zip")
18 md5sums=('999c6845a414933c93bbaf2d356b52d0')
20 build() {
21   mkdir -p ${pkgdir}/opt/torchat/
22         rm -rf ${srcdir}/src/portable.txt #disable the "portable mode"
23         cp -r ${srcdir}/* ${pkgdir}/opt/torchat/
24         
25         rm -rf ${pkgdir}/opt/torchat/${pkgname}-source-${pkgver}.zip
27   mkdir -p ${pkgdir}/usr/bin
28         echo '#!/bin/sh
29         /usr/bin/python2 /opt/torchat/src/torchat.py $@' > ${pkgdir}/usr/bin/torchat
30         chmod -R 655 ${pkgdir}/usr/bin/torchat
33         #Desktop Launcher
34         mkdir -p ${pkgdir}/usr/share/applications
35         echo '[Desktop Entry]
36 Encoding=UTF-8
37 Name=TORChat
38 GenericName=TORChat
39 Comment=Messenger application on top of the Tor network and location hidden services
40 Exec=/usr/bin/torchat
41 Icon=torchat
42 StartupNotify=true
43 Terminal=false
44 Type=Application
45 Categories=Network;InstantMessaging;' > ${pkgdir}/usr/share/applications/torchat.desktop
47         #Icon
48         mkdir -p ${pkgdir}/usr/share/pixmaps
49         cp ${srcdir}/src/icons/torchat.png ${pkgdir}/usr/share/pixmaps/