From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/xfce4-screenshooter/PKGBUILD | 43 ++++++++++++++++++++++ extra/xfce4-screenshooter/fix_segfault.diff | 17 +++++++++ .../xfce4-screenshooter-1.7.9-dsofix.patch | 11 ++++++ .../xfce4-screenshooter.install | 11 ++++++ 4 files changed, 82 insertions(+) create mode 100644 extra/xfce4-screenshooter/PKGBUILD create mode 100644 extra/xfce4-screenshooter/fix_segfault.diff create mode 100644 extra/xfce4-screenshooter/xfce4-screenshooter-1.7.9-dsofix.patch create mode 100644 extra/xfce4-screenshooter/xfce4-screenshooter.install (limited to 'extra/xfce4-screenshooter') diff --git a/extra/xfce4-screenshooter/PKGBUILD b/extra/xfce4-screenshooter/PKGBUILD new file mode 100644 index 000000000..4db623812 --- /dev/null +++ b/extra/xfce4-screenshooter/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 104774 2011-01-04 21:47:46Z andyrtr $ +# Maintainer: tobias +# Contributor: Tobias Kieslich + +pkgname=xfce4-screenshooter +pkgver=1.7.9 +pkgrel=2 +pkgdesc="plugin that makes screenshots for the Xfce4 panel" +arch=(i686 x86_64) +license=('GPL2') +url="http://goodies.xfce.org/projects/applications/xfce4-screenshooter" +groups=('xfce4-goodies') +#depends=('xfce4-panel' 'libxfcegui4' 'libxfce4ui' 'exo' 'libsoup' 'hicolor-icon-theme') +depends=('xfce4-panel' 'libxfcegui4' 'libsoup' 'hicolor-icon-theme') +makedepends=('intltool') +install=${pkgname}.install +options=('!libtool') +source=(http://archive.xfce.org/src/apps/${pkgname}/1.7/${pkgname}-${pkgver}.tar.bz2 + xfce4-screenshooter-1.7.9-dsofix.patch + fix_segfault.diff) +conflicts=('xfce4-screenshooter-plugin') +replaces=('xfce4-screenshooter-plugin') +md5sums=('c01d1cf3830bf8d60e09c0cdd223034c' + '355a7d005bf9200f5a5577f0bc901945' + '794d7e0ff18cad369bd50a78e883f986') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i ${srcdir}/xfce4-screenshooter-1.7.9-dsofix.patch + patch -Np1 -i ${srcdir}/fix_segfault.diff + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install +} diff --git a/extra/xfce4-screenshooter/fix_segfault.diff b/extra/xfce4-screenshooter/fix_segfault.diff new file mode 100644 index 000000000..e2a2f3d95 --- /dev/null +++ b/extra/xfce4-screenshooter/fix_segfault.diff @@ -0,0 +1,17 @@ +--- xfce4-screenshooter-1.7.9/lib/screenshooter-utils.c.orig 2010-01-02 12:42:24.000000000 +0100 ++++ xfce4-screenshooter-1.7.9/lib/screenshooter-utils.c 2010-05-20 22:40:38.347861374 +0200 +@@ -94,11 +94,11 @@ + g_free (title); + title = + g_strdup (xfce_rc_read_entry (rc, "title", _("Screenshot"))); +- } + +- TRACE ("Close the rc file"); ++ TRACE ("Close the rc file"); + +- xfce_rc_close (rc); ++ xfce_rc_close (rc); ++ } + } + + /* And set the sd values */ diff --git a/extra/xfce4-screenshooter/xfce4-screenshooter-1.7.9-dsofix.patch b/extra/xfce4-screenshooter/xfce4-screenshooter-1.7.9-dsofix.patch new file mode 100644 index 000000000..a142df822 --- /dev/null +++ b/extra/xfce4-screenshooter/xfce4-screenshooter-1.7.9-dsofix.patch @@ -0,0 +1,11 @@ +--- xfce4-screenshooter-1.7.9.orig/Makefile.in 2010-02-07 14:45:15.000000000 +0100 ++++ xfce4-screenshooter-1.7.9/Makefile.in 2010-02-16 23:57:31.000000000 +0100 +@@ -282,7 +282,7 @@ + INTLTOOL_PERL = @INTLTOOL_PERL@ + INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ + LD = @LD@ +-LDFLAGS = @LDFLAGS@ ++LDFLAGS = @LDFLAGS@ -lm -lX11 + LIBOBJS = @LIBOBJS@ + LIBS = @LIBS@ + LIBTOOL = @LIBTOOL@ diff --git a/extra/xfce4-screenshooter/xfce4-screenshooter.install b/extra/xfce4-screenshooter/xfce4-screenshooter.install new file mode 100644 index 000000000..21b79d2d4 --- /dev/null +++ b/extra/xfce4-screenshooter/xfce4-screenshooter.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} -- cgit v1.2.3-54-g00ecf