csync-git
[mirrors/ArchLinux-Packages.git] / torchat / PKGBUILD
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # You can also contact me on http://blog.harvie.cz/
3
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'
15 )
16
17 source=("http://torchat.googlecode.com/files/${pkgname}-source-${pkgver}.zip")
18 md5sums=('999c6845a414933c93bbaf2d356b52d0')
19
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
26
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
31
32
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
46
47 #Icon
48 mkdir -p ${pkgdir}/usr/share/pixmaps
49 cp ${srcdir}/src/icons/torchat.png ${pkgdir}/usr/share/pixmaps/
50
51 }
This page took 0.252142 seconds and 4 git commands to generate.