From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/rtorrent/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ community/rtorrent/ncurses58.patch | 10 ++++++++++ 2 files changed, 42 insertions(+) create mode 100644 community/rtorrent/PKGBUILD create mode 100644 community/rtorrent/ncurses58.patch (limited to 'community/rtorrent') diff --git a/community/rtorrent/PKGBUILD b/community/rtorrent/PKGBUILD new file mode 100644 index 000000000..e106bd12c --- /dev/null +++ b/community/rtorrent/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daenyth +# Contributor: Jeff Mickey +# Contributor: sh__ + +pkgname=rtorrent +pkgver=0.8.6 +pkgrel=3 +pkgdesc="Ncurses BitTorrent client based on libTorrent" +arch=('i686' 'x86_64') +url="http://libtorrent.rakshasa.no" +license=('GPL') +depends=('libtorrent=0.12.6' 'curl>=7.14.3' 'xmlrpc-c>=1858') +source=("http://libtorrent.rakshasa.no/downloads/$pkgname-$pkgver.tar.gz" \ + ncurses58.patch) +options=(!strip) + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -Np0 -i $srcdir/ncurses58.patch + + CXXFLAGS="$CXXFLAGS -g -fno-strict-aliasing" \ + ./configure --prefix=/usr --enable-debug --with-xmlrpc-c + make + make DESTDIR="$pkgdir" install +} + + +# vim:set ts=2 sw=2 et: +md5sums=('b804c45c01c40312926bcea6b55bb084' + 'b8fcd9b6d3385a85ff31de6f32e60e7d') +md5sums=('b804c45c01c40312926bcea6b55bb084' + '1a525adddc0424c23ed9a4aa31c0164a') diff --git a/community/rtorrent/ncurses58.patch b/community/rtorrent/ncurses58.patch new file mode 100644 index 000000000..0f742daad --- /dev/null +++ b/community/rtorrent/ncurses58.patch @@ -0,0 +1,10 @@ +--- src/display/canvas.h 2011-03-01 14:56:25.000000000 +0800 ++++ src/display/canvasfix.h 2011-03-01 14:56:10.000000000 +0800 +@@ -48,7 +48,7 @@ class Canvas { + public: + typedef std::vector attributes_list; + +- Canvas(int x = 0, int y = 0, int width = 0, int height = 0) : ++ Canvas(int x = 0, int y = 0, int width = 1, int height = 1) : + m_window(newwin(height, width, y, x)) {} + ~Canvas() { delwin(m_window); } \ No newline at end of file -- cgit v1.2.3-54-g00ecf