1 # Contributors: William Díaz <wdiaz [at] archlinux [dot] us>
2 # Mladen Pejaković <pejakm@gmail.com>
3 # Thomas Jost (Schnouki) <thomas.jost@gmail.com>
4 # Kaleb Elwert <vahki.ttc@gmail.com>
9 pkgdesc="Command line and GUI utility for downloading files from rapidshare.com (free), depositfiles.com, youtube.com and other sharing servers"
10 url="http://code.google.com/p/slimrat"
12 arch=('i686' 'x86_64')
13 depends=('perl' 'glade-perl' 'perl-www-mechanize' 'perl-json' 'perl-crypt-ssleay' 'perl-http-response-encoding' 'perl-spiffy' 'perl-json')
14 makedepends=('subversion')
15 optdepends=('aview or feh: for CAPTCHA support in command line'
16 'tesseract: for OCR solving'
17 'xclip: for clipboard support in GUI'
18 'imagemagick: for pass to ImageMagick convert binary')
19 backup=('etc/slimrat.conf')
21 provides=(slimrat=${pkgver})
22 install=slimrat.install
23 source=(slimrat.desktop)
24 md5sums=('c7c2e8aa2c145e1c66753bdff84aebdd')
26 _svntrunk=http://slimrat.googlecode.com/svn/trunk/
32 if [ -d ${_svnmod}/.svn ]; then
33 (cd ${_svnmod} && svn up -r ${pkgver})
35 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
38 install -d ${pkgdir}/usr/lib/ ${pkgdir}/usr/bin ${pkgdir}/etc
39 cp -rb ${srcdir}/$_svnmod/src/ ${pkgdir}/usr/lib/slimrat/
40 cp ${srcdir}/$_svnmod/slimrat.conf ${pkgdir}/etc/slimrat.conf
41 install -D -m 644 ${srcdir}/slimrat.desktop ${pkgdir}/usr/share/applications/slimrat.desktop || return 1
42 ln -s /usr/lib/slimrat/slimrat ${pkgdir}/usr/bin/slimrat
43 ln -s /usr/lib/slimrat/slimrat-gui ${pkgdir}/usr/bin/slimrat-gui