diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/handbrake |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/handbrake')
-rw-r--r-- | community/handbrake/PKGBUILD | 54 | ||||
-rw-r--r-- | community/handbrake/dbus-glib.patch | 12 | ||||
-rw-r--r-- | community/handbrake/handbrake.install | 9 | ||||
-rw-r--r-- | community/handbrake/libnotify-0.7.patch | 30 |
4 files changed, 105 insertions, 0 deletions
diff --git a/community/handbrake/PKGBUILD b/community/handbrake/PKGBUILD new file mode 100644 index 000000000..3aad96f48 --- /dev/null +++ b/community/handbrake/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 41565 2011-03-07 21:41:40Z ibiru $ +# Maintainer: Evangelos Foutras <foutrelis@gmail.com> +# Contributor: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: Sebastien Piccand <sebcactus gmail com> + +pkgname=('handbrake' 'handbrake-cli') +pkgver=0.9.5 +pkgrel=2 +arch=('i686' 'x86_64') +url="http://handbrake.fr/" +license=('GPL') +makedepends=('intltool' 'python2' 'yasm' 'wget' 'bzip2' 'gcc-libs' 'libnotify' + 'gstreamer0.10-base' 'gtk2' 'dbus-glib') +source=(http://downloads.sourceforge.net/project/handbrake/$pkgver/HandBrake-$pkgver.tar.bz2 + dbus-glib.patch libnotify-0.7.patch) +md5sums=('e17d3663fc36a985fe43e188695e3196' + 'f8c2a3b258b2c30ef4abb28cee80f8d4' + 'd56bf38d8e1a1d373e5f3b69522958b1') + +build() { + cd "$srcdir/HandBrake-$pkgver" + + patch -Np1 -i $srcdir/dbus-glib.patch + patch -Np1 -i $srcdir/libnotify-0.7.patch + + # Use Python 2 + sed -i 's/python /python2 /' gtk/src/Makefile.am + + ./configure --prefix=/usr --force --disable-gtk-update-checks + cd build + make +} + +package_handbrake() { + pkgdesc="Multithreaded video transcoder" + depends=('bzip2' 'gcc-libs' 'gstreamer0.10-base' 'libnotify' + 'hicolor-icon-theme') + install=$pkgname.install + + cd "$srcdir/HandBrake-$pkgver/build" + + make DESTDIR="$pkgdir" install + rm "$pkgdir/usr/bin/HandBrakeCLI" +} + +package_handbrake-cli() { + pkgdesc="Multithreaded video transcoder (CLI)" + depends=('bzip2' 'gcc-libs' 'zlib') + + cd "$srcdir/HandBrake-$pkgver/build" + install -D HandBrakeCLI "$pkgdir/usr/bin/HandBrakeCLI" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/handbrake/dbus-glib.patch b/community/handbrake/dbus-glib.patch new file mode 100644 index 000000000..602918a65 --- /dev/null +++ b/community/handbrake/dbus-glib.patch @@ -0,0 +1,12 @@ +diff -Nur HandBrake-0.9.5.orig/gtk/configure.ac HandBrake-0.9.5/gtk/configure.ac +--- HandBrake-0.9.5.orig/gtk/configure.ac 2011-03-07 13:06:20.333338164 -0800 ++++ HandBrake-0.9.5/gtk/configure.ac 2011-03-07 13:07:46.346670456 -0800 +@@ -94,7 +94,7 @@ + mingw_flag=yes + ;; + *) +- GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0 libnotify gudev-1.0" ++ GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0 libnotify gudev-1.0 dbus-glib-1" + mingw_flag=no + ;; + esac diff --git a/community/handbrake/handbrake.install b/community/handbrake/handbrake.install new file mode 100644 index 000000000..7aaea8154 --- /dev/null +++ b/community/handbrake/handbrake.install @@ -0,0 +1,9 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +# vim:set ts=2 sw=2 et: diff --git a/community/handbrake/libnotify-0.7.patch b/community/handbrake/libnotify-0.7.patch new file mode 100644 index 000000000..0def15254 --- /dev/null +++ b/community/handbrake/libnotify-0.7.patch @@ -0,0 +1,30 @@ +diff -Nur HandBrake-0.9.5.orig/gtk/src/callbacks.c HandBrake-0.9.5/gtk/src/callbacks.c +--- HandBrake-0.9.5.orig/gtk/src/callbacks.c 2011-03-07 13:06:20.333338164 -0800 ++++ HandBrake-0.9.5/gtk/src/callbacks.c 2011-03-07 13:21:32.973338933 -0800 +@@ -39,6 +39,10 @@ + #endif + + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif ++ + #include <gdk/gdkx.h> + #else + #define WINVER 0x0500 +@@ -4889,9 +4893,13 @@ + notification = notify_notification_new( + "Encode Complete", + "Put down that cocktail, Your HandBrake queue is done!", +- "hb-icon", +- NULL); ++ "hb-icon" ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ ,NULL); + notify_notification_attach_to_status_icon(notification, si); ++#endif + g_signal_connect(notification, "closed", (GCallback)notify_closed_cb, ud); + notify_notification_show(notification, NULL); + #endif |