# Contributor: Jachym Barvinek <jachymb@gmail.com>
# Maintainer: Laurie Clark-Michalek <bluepeppers@archlinux.us>
pkgname=xvst
pkgver='2.3.5'
pkgrel='1'
pkgdesc='GUI tool for downloading videos from sites like YouTube, GoogleVideo etc.'
arch=('i686' 'x86_64')
source=("http://downloads.sourceforge.net/project/xviservicethief/Source%20Code/2.3.5%20src/xVST_2_3_5_src.zip"
"xvst.png"
"xvst.desktop")
url="http://xviservicethief.sourceforge.net/"
license=('GPL')
depends=('qt' 'ffmpeg')
makedepends=('qt' 'ffmpeg')
md5sums=('e609d19bb6ac8428513a3dcb489ae6b5'
'e9da444765f885c581a72dee70114b6c'
'f6c164f000d05f302c9d9aa8d1fdda66')
build() {
cd $srcdir
echo '#include <cstring>' >> src/pakunpak/pakunpak.h || return 1 # hack - strcpy etc.
qmake -set build_mode dynamic_build || return 1
qmake || return 1 # doesn't currently work with Qt 4.4 (RC1)
make || return 1
install -D $srcdir/bin/xvst $pkgdir/usr/bin/xvst
install -D $srcdir/xvst.desktop $pkgdir/usr/share/applications/xvst.desktop
install -D $srcdir/xvst.png $pkgdir/usr/share/pixmaps/xvst.png
}