updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / anomos-git / PKGBUILD
blobc9a99a326a29478b7be78fe98a4526023a752ad3
1 # Maintainer.: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
4 pkgname=anomos-git
5 _pkgname="${pkgname%-*}"
6 pkgver=20110506
7 pkgrel=1
8 pkgdesc="Anonymous, Encrypted BitTorrent"
9 url="http://anomos.info"
10 license=("GPL3")
11 arch=("i686" "x86_64")
12 depends=("openssl" "python2" "python-m2crypto" "pygtk")
13 makedepends=("git")
14 source=("anomos.desktop"
15         "anomos.png")
16 md5sums=("e1ed7f40279d2397e61a33125cee852f"
17          "fb8e695aeab268834c9d7790be3be8a5")
19 _gitroot="git://anomos.info/git/anomos.git"
20 _gitname="${_pkgname}"
22 build() {
23   cd "${srcdir}"
25   #GIT {{{
26   msg "Connecting to GIT server..."
27   if [ -d "${_gitname}" ]; then
28     (cd "${_gitname}" && git pull origin)
29     msg "The local repository was updated."
30   else
31     git clone "${_gitroot}" "${_gitname}"
32     msg "The remote repository was cloned."
33   fi
34   msg "GIT sync done or server timeout."
35   cd "${srcdir}"
36   if [ -d "${_gitname}-build" ]; then
37     rm -rf "${_gitname}-build"
38   fi
39   cp -rf "${_gitname}" "${_gitname}-build"
40   cd "${_gitname}-build"
41   #}}}
43   python2 setup.py build
44   python2 setup.py install --prefix="${pkgdir}/usr"
46   install -Dm644 "${srcdir}/anomos.png" "${pkgdir}/usr/share/pixmaps/anomos.png"
47   install -Dm644 "${srcdir}/anomos.desktop" "${pkgdir}/usr/share/applications/anomos.desktop"
49   #remove the .py from the end of the binaries
50   cd "${pkgdir}/usr/bin"
51   rename .py '' *.py