4 pkgdesc="WinFF is a GUI to the command line video converter FFmpeg"
6 url="http://code.google.com/p/winff/"
8 depends=('ffmpeg' 'gtk2')
9 makedepends=('svn' 'lazarus')
11 _svntrunk="http://winff.googlecode.com/svn/trunk/"
16 if [ -d $_svnmod/.svn ]; then
17 (cd $_svnmod && svn up)
19 svn co $_svntrunk $_svnmod
22 msg "SVN checkout done or server timeout"
23 msg "Starting make..."
24 if [[ -d ${srcdir}/${_svnmod}-build ]]; then
25 msg "Cleaning the previous build directory..."
26 rm -rf ${srcdir}/${_svnmod}-build
28 cp -r ${srcdir}/${_svnmod}/\ winff\ --username\ bggmtt ${srcdir}/${_svnmod}-build
29 cd ${srcdir}/${_svnmod}-build
30 lazbuild winff.lpr --ws=gtk2
31 rm ${srcdir}/${_svnmod}-build/win32setup/presets.xml
34 cd ${srcdir}/${_svnmod}-build
35 install -Dm 755 $srcdir/$_svnmod-build/winff $pkgdir/usr/bin/winff
36 install -dm 755 ${pkgdir}/usr/share/winff/
37 find . -name "*.xml" -exec install -Dm 644 {} ${pkgdir}/usr/share/winff/ \; &> /dev/null
38 install -Dm 644 $srcdir/$_svnmod-build/debian/winff.desktop $pkgdir/usr/share/applications/winff.desktop
39 install -Dm 644 $srcdir/$_svnmod-build/debian/winff.xpm $pkgdir/usr/share/pixmaps/winff.xpm
40 install -Dm 644 $srcdir/$_svnmod-build/winff-icons/16x16/winff.png $pkgdir/usr/share/icons/hicolor/16x16/apps/winff.png
41 install -Dm 644 $srcdir/$_svnmod-build/winff-icons/24x24/winff.png $pkgdir/usr/share/icons/hicolor/24x24/apps/winff.png
42 install -Dm 644 $srcdir/$_svnmod-build/winff-icons/32x32/winff.png $pkgdir/usr/share/icons/hicolor/32x32/apps/winff.png
43 install -Dm 644 $srcdir/$_svnmod-build/winff-icons/48x48/winff.png $pkgdir/usr/share/icons/hicolor/48x48/apps/winff.png
44 install -dm 755 ${pkgdir}/usr/share/winff/languages/
45 find . -name "*.po" -exec install -Dm 644 {} ${pkgdir}/usr/share/winff/languages/ \; &> /dev/null