Advertisement
Guest User

Contributor: M4rQu1Nh0S <zonadomarquinhos@gmail.com> | xvst

a guest
Mar 7th, 2013
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. # Maintainer: Larry Hajali <larryhaja[at]gmail[dot]com>
  2. # Contributor: Jachym Barvinek <jachymb@gmail.com>
  3. # Contributor: Laurie Clark-Michalek <bluepeppers@archlinux.us>
  4. # Contributor: Thomas Dziedzic < gostrc at gmail >
  5. # Contributor: M4rQu1Nh0S <zonadomarquinhos@gmail.com>
  6.  
  7.  
  8. pkgname=xvst
  9. pkgver=2.4.1
  10. pkgrel=5
  11. pkgdesc='GUI tool for downloading videos from sites like YouTube, GoogleVideo etc.'
  12. url='http://xviservicethief.sourceforge.net'
  13. license=('GPL3')
  14. arch=('i686' 'x86_64')
  15. depends=('qt' 'ffmpeg' 'qtwebkit')
  16. makedepends=('sed' 'subversion')
  17. optdepends=('flvstreamer: for downloading flv files.')
  18. install=xvst.install
  19. source=('http://downloads.sourceforge.net/xviservicethief/xVST_2_4_1_src.zip'
  20. 'xvst.desktop'
  21. 'gcc-4.7.patch')
  22. md5sums=('7f8c2e79c3431cc46da306419abc16eb'
  23. '9d4d4d4841b497fe64705d36e7955174'
  24. '79a5299880dce26e97fee267f6ed9198')
  25.  
  26. build()
  27. {
  28. # Patch for newer gcc.
  29. patch -p1 < ${srcdir}/gcc-4.7.patch
  30.  
  31. # Update the plugins via subversion.
  32. rm -rf resources/{services,translations/definitions}
  33. svn co https://xviservicethief.svn.sourceforge.net/svnroot/xviservicethief/trunk/resources/services \
  34. resources/services
  35. svn co https://xviservicethief.svn.sourceforge.net/svnroot/xviservicethief/trunk/resources/translations/definitions \
  36. resources/translations/definitions
  37.  
  38. sed -i "s|getApplicationPath()\ +\ \"|\"/usr/share/${pkgname}|g" src/options.cpp
  39. lrelease resources/translations/*.ts
  40. rm -f resources/translations/template_for_new_translations.qm
  41.  
  42. qmake -set build_mode dynamic_build
  43. qmake PREFIX=/usr QMAKE_CFLAGS+="${CFLAGS}" QMAKE_CXXFLAGS="${CXXFLAGS}" \
  44. -o Makefile xVideoServiceThief.pro
  45. make
  46. }
  47.  
  48. package()
  49. {
  50. install -d -m 0755 "$pkgdir"/usr/share/$pkgname/{plugins,languages}
  51. find resources/services -name "*.js" \
  52. -exec cp -dpR {} "$pkgdir"/usr/share/$pkgname/plugins \;
  53. install -m 0644 resources/translations/*.qm \
  54. "$pkgdir"/usr/share/$pkgname/languages
  55. install -m 0644 resources/translations/definitions/*.language \
  56. "$pkgdir"/usr/share/$pkgname/languages
  57. install -Dm755 "$srcdir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
  58.  
  59. install -Dm644 "$srcdir"/xvst.desktop \
  60. "$pkgdir"/usr/share/applications/$pkgname.desktop
  61. install -Dm644 "$srcdir"/resources/images/InformationLogo.png \
  62. "$pkgdir"/usr/share/pixmaps/$pkgname.png
  63.  
  64. install -d -m 0755 "$pkgdir"/usr/share/doc/$pkgname
  65. cp -a "how to compile.txt" resources/changelog.txt \
  66. "$pkgdir"/usr/share/doc/$pkgname
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement