This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

fatrat-git PKGBUILD modified by kotyz

By: a guest on Mar 2nd, 2013  |  syntax: None  |  size: 1.45 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: David Watzke <david@watzke.cz>
  2. # Contributor: Jakub Luzny <limoto94@gmail.com>
  3.  
  4. pkgname=fatrat-git
  5. pkgver=20130302
  6. pkgrel=1
  7. pkgdesc='Qt4 (C++) based download manager with support for HTTP, FTP, SFTP, BitTorrent, rapidshare and more'
  8. arch=('i686' 'x86_64')
  9. url="http://fatrat.dolezel.info/"
  10. license=('GPL')
  11. makedepends=('cmake>=2.6.0' 'git' 'boost')
  12. depends=('qt4' 'qtwebkit' 'libtorrent-rasterbar' 'curl>=7.18.2' 'pion-git' 'java-environment>=6' 'gloox>=0.9' 'boost-libs')
  13. optdepends=("geoip: for displaying the peer's country flag next to the IP address")
  14. provides=('fatrat=1.2')
  15. conflicts=('fatrat')
  16. #options=('!strip')
  17.  
  18. _gitroot="git://git.dolezel.info/fatrat.git"
  19. _gitname="fatrat"
  20.  
  21. build() {
  22.   cd "$srcdir"
  23.   msg "Connecting to GIT server...."
  24.  
  25.   if [ -d "$srcdir/$_gitname" ] ; then
  26.     cd $_gitname && git pull origin
  27.     msg "The local files are updated."
  28.   else
  29.     git clone $_gitroot
  30.     cd "$srcdir/$_gitname"
  31.   fi
  32.  
  33.   msg "GIT checkout done or server timeout"
  34.   msg "Starting make..."
  35.  
  36.   rm -rf "$srcdir/$_gitname-build"
  37.   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  38.   cd "$srcdir/$_gitname-build"
  39.  
  40.   cmake . -DCMAKE_INSTALL_PREFIX='/usr' -DWITH_BITTORRENT=ON -DWITH_CURL=ON -DWITH_NLS=ON \
  41.           -DWITH_JPLUGINS=ON -DWITH_WEBINTERFACE=ON -DWITH_JABBER=ON \
  42.           -DCMAKE_CXX_FLAGS="-DBOOST_ASIO_DYN_LINK" \
  43. #         -DCMAKE_BUILD_TYPE=Debug
  44.   make
  45.   make DESTDIR="$pkgdir" install
  46.  
  47. }
  48.  
  49. #category: network
clone this paste RAW Paste Data