updated on Fri Jan 6 08:01:17 UTC 2012
[aur-mirror.git] / qhandbrake-git / PKGBUILD
blobd52e712a0d343b298879cfe92f1fb562badd4a3d
1  # Contributor: Mariano Copetti <marianocopetti@gmail.com>
3 pkgname=qhandbrake-git
4 pkgver=20090712
5 pkgrel=1
6 pkgdesc="A Qt frontend for HandBrake, an open-source, GPL-licensed, multiplatform, multithreaded DVD to MPEG-4 converter."
7 arch=('i686' 'x86_64')
8 url="http://forum.handbrake.fr/viewtopic.php?f=4&t=6388"
9 license=('GPL')
10 depends=('qt')
11 makedepends=('ftjam' 'git' 'yasm' 'python' 'phonon')
12 source=('qhandbrake.desktop' 'A99-dvdread-aclocal-install.patch' 'A99-dvdnav-aclocal-install.patch')
13 md5sums=('5cfbaa7109266b7071aa63c5c6884686' '25fc6f654c4b792dc75d37b32ceee481' 'b4fbe1c505ce65cdb68d727ea31fd81d')
15 _gitroot="git://repo.or.cz/HandBrake.git"
16 _gitname="HandBrake"
19 build() {
20     cd $srcdir
22     if [[ -d $_gitname ]]; then
23         (cd $_gitname && git pull origin)
24     else
25         git clone $_gitroot
26         cd $_gitname
27         git checkout  -b bonne/qhandbrake origin/bonne/qhandbrake
28     fi
29     
30     msg "GIT checkout done or server timeout"
31     msg "Starting make..."
33     cd $srcdir
34     rm -rf $_gitname-build
35     cp -r $_gitname $_gitname-build
36     cd $_gitname-build
38       # Add extra patches
39   cp ${srcdir}/A99-dvdread-aclocal-install.patch ${srcdir}/$_gitname-build/contrib/libdvdread || return 1
40   cp ${srcdir}/A99-dvdnav-aclocal-install.patch ${srcdir}/$_gitname-build/contrib/libdvdnav || return 1
42     ./configure --disable-gtk || return 1
43     cd build
44     make || return 1
45     cd qt
46     install -D -m755 qtHB $startdir/pkg/usr/bin/qhandbrake
47     install -D -m644 $srcdir/$_gitname-build/qt/gtkicons/hb-icon.128.png /$startdir/pkg/usr/share/pixmaps/qhandbrake.png
48     install -D -m644 $startdir/qhandbrake.desktop $startdir/pkg/usr/share/applications/qhandbrake.desktop