updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / rtorrent-git / PKGBUILD
blob075970a931d06a74775fc78ccff8f3eb126f6207
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>
5 # Contributor: sh__
7 pkgname=rtorrent-git
8 _pkgname="${pkgname%-*}"
9 pkgver=20111013
10 pkgrel=1
11 pkgdesc="Ncurses BitTorrent client based on libTorrent"
12 url="http://libtorrent.rakshasa.no"
13 license=("GPL")
14 arch=("i686" "x86_64")
15 depends=("curl" "libtorrent-git>=20111013" "xmlrpc-c")
16 makedepends=("cppunit" "git")
17 conflicts=("rtorrent")
18 provides=("rtorrent")
19 install=${_pkgname}.install
20 source=()
21 md5sums=()
23 _gitname="${_pkgname}"
24 _gitroot="git://github.com/rakshasa/${_pkgname}.git"
26 build() {
27   cd "${srcdir}"
29   #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."
34   else
35     git clone "${_gitroot}" "${_gitname}"
36     msg "The remote repository was cloned."
37   fi
38   msg "GIT sync done or server timeout."
39   cd "${srcdir}"
40   if [ -d "${_gitname}-build" ]; then
41     rm -rf "${_gitname}-build"
42   fi
43   cp -rf "${_gitname}" "${_gitname}-build"
44   cd "${_gitname}-build"
45   #}}}
47   ./autogen.sh
48   CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" \
49   ./configure --prefix=/usr --disable-debug --with-xmlrpc-c
50   make
53 package() {
54   cd "${_gitname}-build"
56   make DESTDIR="${pkgdir}" install
58 # vim:set ts=2 sw=2 et: