1 # Maintainer.: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
5 _pkgname="${pkgname%-*}"
8 pkgdesc="Anonymous, Encrypted BitTorrent"
9 url="http://anomos.info"
11 arch=("i686" "x86_64")
12 depends=("openssl" "python2" "python-m2crypto" "pygtk")
14 source=("anomos.desktop"
16 md5sums=("e1ed7f40279d2397e61a33125cee852f"
17 "fb8e695aeab268834c9d7790be3be8a5")
19 _gitroot="git://anomos.info/git/anomos.git"
20 _gitname="${_pkgname}"
26 msg "Connecting to GIT server..."
27 if [ -d "${_gitname}" ]; then
28 (cd "${_gitname}" && git pull origin)
29 msg "The local repository was updated."
31 git clone "${_gitroot}" "${_gitname}"
32 msg "The remote repository was cloned."
34 msg "GIT sync done or server timeout."
36 if [ -d "${_gitname}-build" ]; then
37 rm -rf "${_gitname}-build"
39 cp -rf "${_gitname}" "${_gitname}-build"
40 cd "${_gitname}-build"
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"