updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / winff / PKGBUILD
blob5fa81a8559aa4f73a0880cd217cb1a631454ada3
1 # Maintainer: Paolo Stivanin <admin AT polslinux DOT it>
3 pkgname=winff
4 pkgver=1.4.1
5 pkgrel=4
6 pkgdesc="GUI for ffmpeg"
7 url="http://code.google.com/p/winff/"
8 license=('GPL3')
9 arch=('i686' 'x86_64')
10 depends=('ffmpeg' 'gtk2' 'xterm')
11 makedepends=('svn' 'lazarus-svn')
12 source=(http://winff.googlecode.com/files/winff-$pkgver-source.tar.gz
13         winff.desktop
14         Remove_win32_as_target_OS.diff)
15 md5sums=('165fe12a935d7b8db4c1d18f22cc1ea9'
16          '8ebcd86fdcd5ffaefe793a98a4c5b8bc'
17          '14dadc67051db714c186301c8f18e36c')
19 build() {
20   cd $srcdir
21   cp $srcdir/Remove_win32_as_target_OS.diff $srcdir/$pkgname/
22   cd $srcdir/$pkgname/
23   patch -Np1 < Remove_win32_as_target_OS.diff
24   cd $srcdir/$pkgname
25   lazbuild winff.lpr --ws=gtk2
28 package() {
29   cd ${srcdir}/
30   install -Dm 755 $srcdir/$pkgname/$pkgname $pkgdir/usr/bin/winff
31   install -dm 755 ${pkgdir}/usr/share/winff/
32   find . -name "*.xml" -exec install -Dm 644 {} ${pkgdir}/usr/share/winff/ \; &> /dev/null
33   install -Dm 644 $srcdir/winff.desktop $pkgdir/usr/share/applications/winff.desktop
34   install -Dm 644 $srcdir/$pkgname/winff-icons/16x16/winff.png $pkgdir/usr/share/icons/hicolor/16x16/apps/winff.png
35   install -Dm 644 $srcdir/$pkgname/winff-icons/24x24/winff.png $pkgdir/usr/share/icons/hicolor/24x24/apps/winff.png
36   install -Dm 644 $srcdir/$pkgname/winff-icons/32x32/winff.png $pkgdir/usr/share/icons/hicolor/32x32/apps/winff.png
37   install -Dm 644 $srcdir/$pkgname/winff-icons/48x48/winff.png $pkgdir/usr/share/icons/hicolor/48x48/apps/winff.png
38   install -dm 755 ${pkgdir}/usr/share/winff/languages/
39   find . -name "*.po"  -exec install -Dm 644 {} ${pkgdir}/usr/share/winff/languages/ \; &> /dev/null
40   rm ${srcdir}/$pkgname/presets.xml