PKGBUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Maintainer: Sunit Kumar Nandi <sunitnandi834 at gmail.com>
  2. # Forked from: Frikilinux <frikilinux at gmail.com> and Carl Reinke <mindless2112 gmail com>
  3. pkgname=utserver
  4. pkgver=30470
  5. pkgrel=3
  6. pkgdesc='uTorrent server, BitTorrent client with web UI'
  7. url='http://www.utorrent.com/downloads/linux'
  8. license=('custom')
  9. install="$pkgname.install"
  10. source=("utserver-${pkgver}.tar.gz::http://download-new.utorrent.com/endpoint/utserver/os/linux-x64-ubuntu-13-04/track/beta/"
  11. 'utserver' 'utserver.conf' 'utserver.service')
  12. sha256sums=('6e4f836d5ca6bc5ec48632b4e425a936d1a09ab38a6ed2ab8d7016dd8e2b81bf'
  13. '71fd1091e3ffa59ee7ed47d37b634c572080ef8db517cda29f0f4b4c0324e23c'
  14. 'bc4fc09f99f1f234ee32bf7b12cfc13ff3c7fed062b2d0ea65acd5d70f4dbde1'
  15. '223377deb4cc913e9a2a7e08951319a004cc27158dee39fac03870e66ae2d1eb')
  16. arch=('i686' 'x86_64')
  17. depends=('bash' 'openssl' 'zlib')
  18. makedepends=('unzip')
  19. backup=('etc/utserver.conf')
  20. conflicts=('utorrent-server')
  21. if [[ "$CARCH" == i686 ]]
  22. then
  23. source[0]="utserver-${pkgver}.tar.gz::http://download-new.utorrent.com/endpoint/utserver/os/linux-i386-ubuntu-13-04/track/beta/"
  24. sha256sums[0]='ec8bbe21eb3fab14f725c0d3ea648b61d035bf8a2871bb006abd3405f99ed067'
  25. # depends=('bash' 'openssl098' 'zlib')
  26. fi
  27. package()
  28. {
  29. install -dm755 ${pkgdir}/srv/utserver/{downloads,settings,torrents}
  30. install -dm755 ${pkgdir}/usr/share/utserver/webui
  31. install -dm755 ${pkgdir}/usr/share/doc/utserver
  32. cd ${srcdir}/utorrent-server-alpha-v3_3
  33. install -Dm755 utserver ${pkgdir}/usr/share/utserver/utserver
  34. install -m644 docs/* ${pkgdir}/usr/share/doc/utserver
  35. unzip webui.zip -d ${pkgdir}/usr/share/utserver/webui
  36. install -Dm644 docs/license.txt ${pkgdir}/usr/share/licenses/utserver/LICENSE
  37. cd $srcdir
  38. install -Dm755 utserver ${pkgdir}/usr/bin/utserver
  39. install -Dm644 utserver.conf ${pkgdir}/etc/utserver.conf
  40. install -Dm644 utserver.service ${pkgdir}/usr/lib/systemd/system/utserver.service
  41. }