archrelease: copy trunk to community-any
[ArchLinux/community.git] / rtorrent / trunk / PKGBUILD
blob7cf9e0e4ac93e7b79676359705dc03aff7997239
1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
3 # Contributor: Daenyth <Daenyth [at] gmail [dot] com>
4 # Contributor: Jeff Mickey <jeff@archlinux.org>
5 # Contributor: sh__
7 pkgname=rtorrent
8 pkgver=0.9.8
9 pkgrel=4
10 pkgdesc='Ncurses BitTorrent client based on libTorrent'
11 url='https://rakshasa.github.io/rtorrent/'
12 license=('GPL')
13 arch=('x86_64')
14 depends=("libtorrent=0.13.${pkgver##*.}" 'curl' 'xmlrpc-c')
15 source=("https://github.com/rakshasa/rtorrent/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
16 sha256sums=('9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af')
18 prepare() {
19         cd "${srcdir}/${pkgname}-${pkgver}"
20         ./autogen.sh
23 build() {
24         cd "${srcdir}/${pkgname}-${pkgver}"
25         export CXXFLAGS+=' -fno-strict-aliasing'
26         ./configure \
27                 --prefix=/usr \
28                 --disable-debug \
29                 --with-xmlrpc-c \
31         make
34 package() {
35         cd "${srcdir}/${pkgname}-${pkgver}"
36         make DESTDIR="${pkgdir}" install
37         install -D doc/rtorrent.rc "${pkgdir}"/usr/share/doc/rtorrent/rtorrent.rc