PKGBUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Maintainer: André Silva <emulatorman@hyperbola.info>
  2. pkgname=dontpanic
  3. pkgver=2.0
  4. pkgrel=1
  5. pkgdesc="Dontpanic is a python app to look for any movie or serie and watch them in 'streaming'. It looks like popcorntime, but doesn't depend of a centralized api."
  6. arch=(any)
  7. url=http://3hg.toile-libre.org/dontpanic/index.html
  8. license=(MIT)
  9. depends=('python-bottle' 'python-requests' 'python-beautifulsoup4' 'sqlite' 'libtorrent-rasterbar')
  10. optdepends=('python-cherrypy: for server mode')
  11. makedepends=('git')
  12. replaces=(popcorntime)
  13. conflicts=(popcorntime)
  14. provides=(popcorntime)
  15. source=("$pkgname.tgz::http://3hg.toile-libre.org/dontpanic/downloads/dontpanic-latest.tgz")
  16. sha256sums=('a79fc5d008cfc1f46da430ea56c19c39ab4128a8c93d95554b77b395dede54c3')
  17. prepare() {
  18. cd "${srcdir}/$pkgname"
  19. sed -i 's|python3.4|python|' $pkgname
  20. sed -i 's|python3|python|' $pkgname
  21. sed -i 's|torent|torrent|' $pkgname.desktop
  22. }
  23. package() {
  24. install -dm755 "$pkgdir/usr/bin"
  25. install -dm755 "$pkgdir/usr/share"
  26. install -dm755 "$pkgdir/usr/share/$pkgname/"
  27. install -dm755 "$pkgdir/usr/share/$pkgname/dontpanic/"
  28. install -dm755 "$pkgdir/usr/share/$pkgname/static/"
  29. install -dm755 "$pkgdir/usr/share/$pkgname/views/"
  30. install -dm755 "$pkgdir/usr/share/man/man1/"
  31. cd "${srcdir}/$pkgname/src/"
  32. for _file in *.py; do
  33. install -D -m 644 $_file "$pkgdir/usr/share/$pkgname/"
  34. done
  35. cd "${srcdir}/$pkgname/src/dontpanic/"
  36. for _file in *.py; do
  37. install -D -m 644 $_file "$pkgdir/usr/share/$pkgname/dontpanic/"
  38. done
  39. cd "${srcdir}/$pkgname/src/static/"
  40. for _file in *.png *.ico *.css; do
  41. install -D -m 644 $_file "$pkgdir/usr/share/$pkgname/static/"
  42. done
  43. cd "${srcdir}/$pkgname/src/views/"
  44. for _file in *.tpl; do
  45. install -D -m 644 $_file "$pkgdir/usr/share/$pkgname/views/"
  46. done
  47. install -D -m 755 "${srcdir}/$pkgname/dontpanic" "$pkgdir/usr/bin/dontpanic"
  48. install -Dm644 "${srcdir}/$pkgname/src/dontpanic.png" "$pkgdir/usr/share/pixmaps/dontpanic.png"
  49. install -Dm644 "${srcdir}/$pkgname/dontpanic.desktop" "$pkgdir/usr/share/applications/dontpanic.desktop"
  50. install -Dm644 "${srcdir}/$pkgname/dontpanic.1.gz" "$pkgdir/usr/share/man/man1/"
  51. }