Advertisement
Guest User

Untitled

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