updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / qtnotifydaemon-svn / PKGBUILD
blobc9b2f65aef8a68b5bb948effccccf71f8ecb4742
1 pkgname=qtnotifydaemon-svn
2 pkgver=40
3 pkgrel=1
4 pkgdesc="Configurable and flexible Qt notification daemon"
5 arch=('i686' 'x86_64')
6 url="http://sourceforge.net/projects/qtnotifydaemon"
7 license=('GPL3')
8 depends=('qt')
9 makedepends=('subversion')
10 source=('org.freedesktop.Notifications.service')
11 md5sums=('3ddb9114a6de013592449a88a12aef46')
12 install="${pkgname}.install"
13 provides=('qtnotifydaemon' 'notification-daemon' 'xfce4-notifyd' 'notify-osd')
14 conflicts=('qtnotifydaemon' 'notification-daemon' 'xfce4-notifyd' 'notify-osd')
16 _svntrunk="https://qtnotifydaemon.svn.sourceforge.net/svnroot/qtnotifydaemon"
17 _svnmod="qtnotifydaemon"
19 build()  {
20   cd ${srcdir}
22   msg2 "Connecting to $_svntrunk SVN server...."
23   if [ -d $_svnmod/.svn ]; then
24     (cd $_svnmod && svn up -r $pkgver)
25   else
26     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
28   msg2 "SVN checkout done or server timeout"
30   msg2 "Starting make..."
31   if [[ -d "${srcdir}/build" ]]; then
32     msg2 "Cleaning the previous build directory..."
33     rm -rf "${srcdir}/build"
34   fi
35   mkdir "${srcdir}/${_svnmod}-build"
36   cd "${srcdir}/${_svnmod}-build"
37   qmake ${srcdir}/${_svnmod}/qtnotifydaemon.pro
38   make
41 package() {
42   install -Dm 755 ${srcdir}/${_svnmod}-build/qtnotifydaemon ${pkgdir}/usr/bin/qtnotifydaemon
43   install -Dm 644 ${srcdir}/org.freedesktop.Notifications.service ${pkgdir}/usr/share/dbus-1/services/org.freedesktop.Notifications.service