diff options
Diffstat (limited to 'main/rtorrent/APKBUILD')
-rw-r--r-- | main/rtorrent/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/rtorrent/APKBUILD b/main/rtorrent/APKBUILD new file mode 100644 index 0000000000..bc3dfad102 --- /dev/null +++ b/main/rtorrent/APKBUILD @@ -0,0 +1,38 @@ +# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> + +pkgname=rtorrent +pkgver=0.9.2 +pkgrel=0 +pkgdesc='Ncurses BitTorrent client based on libTorrent' +url='http://libtorrent.rakshasa.no/' +license='GPL' +arch='all' +makedepends='libsigc++-dev libtorrent-dev curl-dev xmlrpc-c-dev ncurses-dev' +subpackages="$pkgname-doc" +source="http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz" + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + export LDFLAGS="${LDFLAGS} -lpthread" + ./configure \ + --prefix=/usr \ + --disable-debug \ + --with-xmlrpc-c \ + || return 1 + + make || return 1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -D doc/faq.xml "${pkgdir}"/usr/share/doc/rtorrent/faq.xml \ + || return 1 + install -D doc/rtorrent.1 "${pkgdir}"/usr/share/man/man1/rtorrent.1 \ + || return 1 + install -D doc/rtorrent.rc \ + "${pkgdir}"/usr/share/doc/rtorrent/rtorrent.rc || return 1 +} + +md5sums="72c3e9ab859bda7cc8aa96c0b508b09f rtorrent-0.9.2.tar.gz" |