summaryrefslogtreecommitdiff
path: root/community/gshutdown/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/gshutdown/PKGBUILD')
-rw-r--r--community/gshutdown/PKGBUILD17
1 files changed, 11 insertions, 6 deletions
diff --git a/community/gshutdown/PKGBUILD b/community/gshutdown/PKGBUILD
index 665e1a034..0ec6ad4c7 100644
--- a/community/gshutdown/PKGBUILD
+++ b/community/gshutdown/PKGBUILD
@@ -1,23 +1,28 @@
-# $Id: PKGBUILD 65592 2012-02-21 09:21:53Z spupykin $
+# $Id: PKGBUILD 110838 2014-05-08 13:15:41Z spupykin $
# Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Achraf cherti <achrafcherti@gmail.com>
pkgname=gshutdown
pkgver=0.2
-pkgrel=4
+pkgrel=5
pkgdesc="An advanced shutdown utility"
arch=('i686' 'x86_64')
url="http://gshutdown.tuxfamily.org"
license=('GPL')
depends=('libglade' 'libnotify')
makedepends=('pkg-config')
-source=(http://gshutdown.tuxfamily.org/release/$pkgname-$pkgver.tar.gz)
-md5sums=('c0662f6b74fa1be10e4d34bfc5731d9b')
-sha1sums=('ab73b1d6c36831df82d231ffa333cdf394fd5b3e')
+source=(http://gshutdown.tuxfamily.org/release/$pkgname-$pkgver.tar.gz
+ build-fix.patch)
+md5sums=('c0662f6b74fa1be10e4d34bfc5731d9b'
+ '0b3ac3c62c5899814e136cc62f7636f7')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 <$srcdir/build-fix.patch
+}
build() {
cd "$srcdir/$pkgname-$pkgver"
- sed -i 's/notify_notification_new("GShutdown", message, NULL, GTK_WIDGET(widget));/notify_notification_new("GShutdown", message, GTK_WIDGET(widget));/' src/gui.c
LDFLAGS="-lX11 -lXau" ./configure --prefix=/usr --mandir=/usr/share
make
}