summaryrefslogtreecommitdiff
path: root/community/gshutdown/PKGBUILD
blob: 36a1fc53a7f2874892ac88ac6bc902a5a70c5098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 65592 2012-02-21 09:21:53Z spupykin $
# Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Achraf cherti <achrafcherti@gmail.com>

pkgname=gshutdown
pkgver=0.2
pkgrel=4
pkgdesc="An advanced shutdown utility"
arch=('i686' 'x86_64' 'mips64el')
url="http://gshutdown.tuxfamily.org"
license=('GPL')
depends=('libglade' 'libnotify')
makedepends=('pkg-config')
source=(http://gshutdown.tuxfamily.org/release/$pkgname-$pkgver.tar.gz
	gshutdown-0.2-glib.patch)
md5sums=('c0662f6b74fa1be10e4d34bfc5731d9b'
	 '8d624b2651240d5dffd5fd208a5354ff')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -Np1 -i ${srcdir}/gshutdown-0.2-glib.patch
  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
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}