updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / xvst / PKGBUILD
blob98b1cf00b2d3a2867ace0af794adfa19f5d3c1d9
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>
6 pkgname=xvst
7 pkgver=2.4.1
8 pkgrel=2
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=('qt>=4.6.0' 'ffmpeg')
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 md5sums=('7f8c2e79c3431cc46da306419abc16eb'
20          '9d4d4d4841b497fe64705d36e7955174')
22 build()
24   # Update the plugins via subversion.
25   rm -rf resources/{services,translations/definitions}
26   svn co https://xviservicethief.svn.sourceforge.net/svnroot/xviservicethief/trunk/resources/services \
27     resources/services
28   svn co https://xviservicethief.svn.sourceforge.net/svnroot/xviservicethief/trunk/resources/translations/definitions \
29     resources/translations/definitions
31   sed -i "s|getApplicationPath()\ +\ \"|\"/usr/share/${pkgname}|g" src/options.cpp
32   lrelease resources/translations/*.ts
33   rm -f resources/translations/template_for_new_translations.qm
35   qmake -set build_mode dynamic_build
36   qmake PREFIX=/usr -o Makefile xVideoServiceThief.pro
37   make \
38     CFLAGS="-pipe ${CFLAGS} -Wall -W -D_REENTRANT \$(DEFINES)" \
39     CXXFLAGS="-pipe ${CXXFLAGS} -Wall -W -D_REENTRANT \$(DEFINES)"
42 package()
44   install -d -m 0755 "$pkgdir"/usr/share/$pkgname/{plugins,languages}
45   find resources/services -name "*.js" \
46     -exec cp -dpR {} "$pkgdir"/usr/share/$pkgname/plugins \;
47   install -m 0644 resources/translations/*.qm \
48     "$pkgdir"/usr/share/$pkgname/languages
49   install -m 0644 resources/translations/definitions/*.language \
50     "$pkgdir"/usr/share/$pkgname/languages
51   install -Dm755 "$srcdir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
53   install -Dm644 "$srcdir"/xvst.desktop \
54     "$pkgdir"/usr/share/applications/$pkgname.desktop
55   install -Dm644 "$srcdir"/resources/images/InformationLogo.png \
56     "$pkgdir"/usr/share/pixmaps/$pkgname.png
58   install -d -m 0755 "$pkgdir"/usr/share/doc/$pkgname
59   cp -a "how to compile.txt" resources/changelog.txt \
60     "$pkgdir"/usr/share/doc/$pkgname