summaryrefslogtreecommitdiff
path: root/pcr/rtorrent-color/PKGBUILD
blob: 0295e37986f4e54951dfdfa2485c5081f824e018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer (Arch):    KopfKrieg <archlinux [at] absolem [dot] cc>
# Contributor (Arch):   Ashren <edgar [at] archlinux [dot] us>
# Contributors (Arch):  Lucky <archlinux@builds.lucky.li> and Hleem
# Based on rtorrent-color from AUR
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=rtorrent-color
_pkgname="rtorrent"
pkgver=0.9.5
pkgrel=4
pkgdesc="Ncurses BitTorrent client based on libTorrent with color patch."
url="http://rakshasa.github.io/rtorrent/"
arch=("i686" "x86_64")
license=("GPL")
depends=("curl" "libtorrent=0.13.5" "xmlrpc-c" "libsigc++")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
install="${pkgname}.install"
#source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rakshasa/${_pkgname}/archive/${pkgver}.tar.gz"
source=("${pkgname}-${pkgver}.tar.gz::http://pkgbuild.com/~bisson/rtorrent-0.9.5.tar.gz"
        "${_pkgname}-${pkgver}_color.patch")
sha1sums=('ae2e2c6444bb29278406118527db19429c8095cf'
          '78429b5cf5976270dc1a55d8dc0ef4644675512b')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  patch -uNp1 -i "${srcdir}/${_pkgname}-${pkgver}_color.patch"
  
  sed '/AM_PATH_CPPUNIT/d' -i configure.ac
  ./autogen.sh
  
  export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
  ./configure \
    --prefix=/usr \
    --enable-debug \
    --with-xmlrpc-c \
  
  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 doc/rtorrent.rc  "${pkgdir}/usr/share/doc/rtorrent/rtorrent.rc"
}