summaryrefslogtreecommitdiff
path: root/pcr/rtorrent-color/PKGBUILD
blob: 3e3f1e4bcfe32785a5fa568b2bc145026ee3e272 (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
# 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.6
pkgrel=2
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.6" "xmlrpc-c" "libsigc++")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rakshasa/${_pkgname}/archive/${pkgver}.tar.gz"
        "${_pkgname}-${pkgver}_color.patch")
sha1sums=('27505081254618077c291eb1ee36bfb41f974834'
          '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"
}