updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / rtorrent-svn / PKGBUILD
blobcdaf1af3b0ae0f830773ace9119b77f2e63be34e
1 # Maintainer: Marcin Karpezo <sirmacik at gmail dot com>
2 # Contributor: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
3 # Contributor: Jonny Gerold <jonny@fsk141.com>
4 # Contributor: Daenyth <Daenyth [at] gmail [dot] com>
5 # Contributor: Jeff Mickey <jeff@archlinux.org>
6 # Contributor: sh__
8 pkgname=rtorrent-svn
9 _pkgname="rtorrent"
10 pkgver=1287
11 pkgrel=1
12 pkgdesc="Ncurses BitTorrent client based on libTorrent"
13 url="http://libtorrent.rakshasa.no"
14 license=("GPL")
15 arch=("i686" "x86_64")
16 depends=("curl" "libtorrent-svn>=1189" "xmlrpc-c-svn>=2065")
17 makedepends=("cppunit" "subversion")
18 conflicts=("rtorrent")
19 provides=("rtorrent")
20 install=rtorrent.install
21 source=()
22 md5sums=()
24 _svnmod="${_pkgname}"
25 _svntrunk="svn://rakshasa.no/libtorrent/trunk/${_svnmod}"
27 build() {
28   cd "${srcdir}"
30   #svn {{{
31   msg "Connecting to SVN server..."
32   if [ -d "${_svnmod}" ]; then
33     (cd "${_svnmod}" && svn update -r "${pkgver}")
34     msg "The local repository was updated."
35   else
36     svn co "${_svntrunk}" "${_svnmod}" -r "${pkgver}"
37   fi
38   msg "SVN checkout done or server timeout."
39   cd "${srcdir}"
40   if [ -d "${_svnmod}-build" ]; then
41     rm -rf "${_svnmod}-build"
42   fi
43   cp -rf "${_svnmod}" "${_svnmod}-build"
44   cd "${_svnmod}-build"
45   #}}}
46   ./autogen.sh
47   CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" \
48   ./configure --prefix=/usr --disable-debug --with-xmlrpc-c
49   make
50   make DESTDIR="${pkgdir}" install
52 # vim:set ts=2 sw=2 et: