diff options
author | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
commit | 223ca251f3ce07eb5484be845e631d6ca645b263 (patch) | |
tree | a9e543c45cd0d58c82e39617f602a718d86976c4 /community/gnome-subtitles | |
parent | 1fed401c439c264bd92a4c13af1bea0bea458cb4 (diff) |
Tue Apr 10 00:01:08 UTC 2012
Diffstat (limited to 'community/gnome-subtitles')
-rw-r--r-- | community/gnome-subtitles/PKGBUILD | 38 | ||||
-rw-r--r-- | community/gnome-subtitles/fix-help.patch | 31 | ||||
-rw-r--r-- | community/gnome-subtitles/gnome-subtitles.install | 22 |
3 files changed, 91 insertions, 0 deletions
diff --git a/community/gnome-subtitles/PKGBUILD b/community/gnome-subtitles/PKGBUILD new file mode 100644 index 000000000..b2f9fc5d9 --- /dev/null +++ b/community/gnome-subtitles/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 69058 2012-04-08 21:20:04Z bgyorgy $ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> + +pkgname=gnome-subtitles +pkgver=1.2 +pkgrel=3 +pkgdesc="Video subtitle editor for GNOME" +arch=('i686' 'x86_64') +url="http://gnomesubtitles.org/" +license=('GPL') +depends=('gstreamer0.10-base-plugins' 'gconf-sharp' 'gtkspell' 'desktop-file-utils') +makedepends=('intltool' 'gnome-doc-utils') +optdepends=('gstreamer0.10-good-plugins: Extra media codecs' + 'gstreamer0.10-bad-plugins: Extra media codecs' + 'gstreamer0.10-ugly-plugins: Extra media codecs' + 'gstreamer0.10-ffmpeg: Extra media codecs') +options=('!libtool') +install=$pkgname.install +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + fix-help.patch) +md5sums=('b7f3175b7a189471821d809171121d62' + '7645bc18812ea52137adddd6e87942d5') + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i "$srcdir/fix-help.patch" + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static --disable-schemas-install --disable-scrollkeeper \ + --with-gconf-schema-file-dir=/usr/share/gconf/schemas + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install +} diff --git a/community/gnome-subtitles/fix-help.patch b/community/gnome-subtitles/fix-help.patch new file mode 100644 index 000000000..e888bfb41 --- /dev/null +++ b/community/gnome-subtitles/fix-help.patch @@ -0,0 +1,31 @@ +From 0b66f14b812bb83ca149bc29906716c17f388da1 Mon Sep 17 00:00:00 2001 +From: Pedro Castro <pedro@gnomesubtitles.org> +Date: Sat, 10 Mar 2012 11:32:28 +0000 +Subject: Fix #671567 (Fix opening help), based on a patch from György Balló. + +Fix keyboard shortcuts url. +--- +diff --git a/src/GnomeSubtitles/Core/EventHandlers.cs b/src/GnomeSubtitles/Core/EventHandlers.cs +index 014fc54..6de82b0 100644 +--- a/src/GnomeSubtitles/Core/EventHandlers.cs ++++ b/src/GnomeSubtitles/Core/EventHandlers.cs +@@ -392,15 +392,11 @@ public class EventHandlers { + /* Help Menu */ + + public void OnHelpContents (object o, EventArgs args) { +- const string arg = "ghelp:gnome-subtitles"; +- if ((!Util.OpenUrl("gnome-help " + arg)) && (!Util.OpenUrl("yelp " + arg))) { +- BasicErrorDialog errorDialog = new BasicErrorDialog(Catalog.GetString("The Gnome Subtitles Manual could not be found."), Catalog.GetString("Please verify that your installation has been completed successfully.")); +- errorDialog.Show(); +- } ++ Util.OpenUrl("ghelp:gnome-subtitles"); + } + + public void OnHelpKeyboardShortcuts (object o, EventArgs args) { +- Util.OpenUrl("http://gnome-subtitles.sourceforge.net/shortcuts"); ++ Util.OpenUrl("http://gnomesubtitles.org/shortcuts"); + } + + public void OnHelpRequestFeature (object o, EventArgs args) { +-- +cgit v0.9.0.2 diff --git a/community/gnome-subtitles/gnome-subtitles.install b/community/gnome-subtitles/gnome-subtitles.install new file mode 100644 index 000000000..adb0ba085 --- /dev/null +++ b/community/gnome-subtitles/gnome-subtitles.install @@ -0,0 +1,22 @@ +pkgname=gnome-subtitles + +post_install() { + gconfpkg --install $pkgname + update-desktop-database -q +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + gconfpkg --uninstall $pkgname +} + +post_remove() { + update-desktop-database -q +} |