1 # Maintainer: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
2 # Contributor: Jonny Gerold <jonny@fsk141.com>
3 # Contributor: Daenyth <Daenyth [at] gmail [dot] com>
4 # Contributor: Jeff Mickey <jeff@archlinux.org>
8 _pkgname="${pkgname%-*}"
11 pkgdesc="Ncurses BitTorrent client based on libTorrent"
12 url="http://libtorrent.rakshasa.no"
14 arch=("i686" "x86_64")
15 depends=("curl" "libtorrent-git>=20111013" "xmlrpc-c")
16 makedepends=("cppunit" "git")
17 conflicts=("rtorrent")
19 install=${_pkgname}.install
23 _gitname="${_pkgname}"
24 _gitroot="git://github.com/rakshasa/${_pkgname}.git"
30 msg "Connecting to GIT server..."
31 if [ -d "${_gitname}" ]; then
32 (cd "${_gitname}" && git pull origin)
33 msg "The local repository was updated."
35 git clone "${_gitroot}" "${_gitname}"
36 msg "The remote repository was cloned."
38 msg "GIT sync done or server timeout."
40 if [ -d "${_gitname}-build" ]; then
41 rm -rf "${_gitname}-build"
43 cp -rf "${_gitname}" "${_gitname}-build"
44 cd "${_gitname}-build"
48 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" \
49 ./configure --prefix=/usr --disable-debug --with-xmlrpc-c
54 cd "${_gitname}-build"
56 make DESTDIR="${pkgdir}" install
58 # vim:set ts=2 sw=2 et: