summaryrefslogtreecommitdiff
path: root/community/rtorrent/PKGBUILD
blob: 0f387097d478ed05cea09ac7785b2b8489594381 (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
# Maintainer:  Daenyth <Daenyth [at] gmail [dot] com>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: sh__

pkgname=rtorrent
pkgver=0.8.9
pkgrel=2
pkgdesc='Ncurses BitTorrent client based on libTorrent'
url='http://libtorrent.rakshasa.no/'
license=('GPL')
arch=('i686' 'x86_64')
depends=('libtorrent=0.12.9' 'curl' 'xmlrpc-c')
source=("http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz")
sha1sums=('0ac51c185e98b5a386e5f1a07bca9a9963e2d6ce')

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

	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 -D doc/faq.xml "${pkgdir}"/usr/share/doc/rtorrent/faq.xml
	install -D doc/rtorrent.1 "${pkgdir}"/usr/share/man/man1/rtorrent.1
	install -D doc/rtorrent.rc "${pkgdir}"/usr/share/doc/rtorrent/rtorrent.rc
}