2012-05-25 04:42:15 +08:00
pkgname = winff
2015-05-04 21:13:58 +08:00
pkgver = 1.5.4
2017-03-12 21:05:28 +08:00
pkgrel = 3
2012-05-25 04:42:15 +08:00
pkgdesc = "WinFF is a GUI for the command line video converter, FFMPEG. It will convert most any video file that FFmpeg will convert. WinFF does multiple files in multiple formats at one time."
2013-08-08 17:09:25 +08:00
arch = ( 'x86_64' )
2012-05-25 04:42:15 +08:00
url = "http://winff.org/"
license = ( 'GPL' )
depends = ( 'fpc-qtbindings' 'ffmpeg' )
2015-08-02 15:07:00 +08:00
makedepends = ( 'lazarus' 'fpc' 'git' 'tar' 'gendesk' )
install = 'winff.install'
source = ( "git://github.com/WinFF/winff.git#commit=86c3560848" )
sha512sums = ( 'SKIP' )
2013-08-08 17:09:25 +08:00
screenshot = "http://winff.org/images/2013/screenshot-1.5-ubuntu.jpg"
2012-05-25 04:42:15 +08:00
2015-08-02 15:07:00 +08:00
prepare( ) {
gendesk -n -f \
--pkgname " $pkgname " \
--pkgdesc " $pkgdesc " \
--genericname 'Video converter' \
--categories 'AudioVideo;AudioVideoEditing;Qt'
}
2012-05-25 04:42:15 +08:00
build( ) {
2015-08-02 15:07:00 +08:00
cd ${ srcdir } /${ pkgname } /${ pkgname }
2013-08-08 17:09:25 +08:00
lazbuild --lazarusdir= /usr/lib/lazarus winff.lpr --ws= qt
2012-05-25 04:42:15 +08:00
}
package( ) {
2015-08-02 15:07:00 +08:00
cd ${ srcdir } /${ pkgname } /${ pkgname }
install -Dm755 " $pkgname " " $pkgdir /usr/bin/ $pkgname "
install -d " $pkgdir /usr/share/winff/ "
find . -name "*.xml" \
-exec install -Dm644 { } " $pkgdir /usr/share/winff/ " \; & > /dev/null
install -Dm644 " $srcdir /winff.desktop " \
" $pkgdir /usr/share/applications/winff.desktop "
install -Dm644 'winff-icons/48x48/winff.png' \
" $pkgdir /usr/share/pixmaps/winff.png "
for size in 16x16 24x24 32x32 48x48; do
install -Dm644 " winff-icons/ $size /winff.png " \
" $pkgdir /usr/share/icons/hicolor/ $size /apps/winff.png "
done
install -dm755 " $pkgdir /usr/share/winff/languages/ "
find . -name "*.po" \
-exec install -Dm644 { } " $pkgdir /usr/share/winff/languages/ " \; & > /dev/null
rm -f 'presets.xml'
2012-05-25 04:42:15 +08:00
}