updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / winff-svn / PKGBUILD
blob667ac778f3be128d312dcc1235485a8a694783ba
1 pkgname=winff-svn
2 pkgver=535
3 pkgrel=1
4 pkgdesc="WinFF is a GUI to the command line video converter FFmpeg"
5 arch=('i686' 'x86_64')
6 url="http://code.google.com/p/winff/"
7 license=('GPL3')
8 depends=('ffmpeg' 'gtk2')
9 makedepends=('svn' 'lazarus')
11 _svntrunk="http://winff.googlecode.com/svn/trunk/"
12 _svnmod="winff"
14 build() {
15   cd $srcdir
16   if [ -d $_svnmod/.svn ]; then
17     (cd $_svnmod && svn up)
18   else
19     svn co $_svntrunk $_svnmod
20   fi
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
27   fi
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
33 package() {
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