updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / notify-osd-better-git / PKGBUILD
blob39620a020541b2d245242515e6cb8e3110ee7a74
1 # Maintainer: Yuri Bochkarev <baltazar.bz@gmail.com>
2 pkgname=notify-osd-better-git
3 _realname=notify-osd
4 pkgver=20111205
5 pkgrel=1
6 pkgdesc="A fork of notify-osd that disables image resizing and adds multiple popups at a time."
7 arch=('i686' 'x86_64')
8 url="https://github.com/magcius/notify-osd-better"
9 license=('GPL')
10 depends=('gconf' 'cairo' 'libwnck')
11 makedepends=('git' 'gnome-common' 'libnotify')
12 conflicts=('notification-daemon' 'notify-osd')
13 provides=('notification-daemon' 'notify-osd')
15 _gitroot="https://github.com/magcius/notify-osd-better"
16 _gitname="notify-osd-better"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [[ -d "$_gitname" ]]; then
23     cd "$_gitname" && git pull origin
24     msg "The local files are updated."
25   else
26     git clone "$_gitroot" "$_gitname"
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting build..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   #
37   # remove tests and examples
38   #
39   sed -i 's/SUBDIRS = src tests data examples/SUBDIRS = src data/' Makefile.in
41   #
42   # BUILD HERE
43   #
44   sed -i 's,/usr/lib/notify-osd/,@LIBEXECDIR@/,' data/org.freedesktop.Notifications.service.in
45   ./autogen.sh --prefix=/usr --libexecdir=/usr/lib/notify-osd
46   ./configure --prefix=/usr --libexecdir=/usr/lib/notify-osd
47   make
49   #
50   # had to hard-code it -- autogen.sh and configure dont seem to understand --libexecdir option
51   #
52   sed -i 's,/usr/local/libexec/notify-osd,/usr/lib/notify-osd/notify-osd,' data/org.freedesktop.Notifications.service
55 package() {
56   cd "$srcdir/$_gitname-build"
57   make DESTDIR="$pkgdir/" install
60 # vim:set ts=2 sw=2 et: