1 # Maintainer: Yuri Bochkarev <baltazar.bz@gmail.com>
2 pkgname=notify-osd-better-git
6 pkgdesc="A fork of notify-osd that disables image resizing and adds multiple popups at a time."
8 url="https://github.com/magcius/notify-osd-better"
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"
20 msg "Connecting to GIT server...."
22 if [[ -d "$_gitname" ]]; then
23 cd "$_gitname" && git pull origin
24 msg "The local files are updated."
26 git clone "$_gitroot" "$_gitname"
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"
37 # remove tests and examples
39 sed -i 's/SUBDIRS = src tests data examples/SUBDIRS = src data/' Makefile.in
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
50 # had to hard-code it -- autogen.sh and configure dont seem to understand --libexecdir option
52 sed -i 's,/usr/local/libexec/notify-osd,/usr/lib/notify-osd/notify-osd,' data/org.freedesktop.Notifications.service
56 cd "$srcdir/$_gitname-build"
57 make DESTDIR="$pkgdir/" install
60 # vim:set ts=2 sw=2 et: