[arch-commits] Commit in mate-notification-daemon/trunk (PKGBUILD)
Martin Wimpress
flexiondotorg at archlinux.org
Sat May 9 11:52:18 UTC 2015
Date: Saturday, May 9, 2015 @ 13:52:18
Author: flexiondotorg
Revision: 133050
upgpkg: mate-notification-daemon 1.10.0-1 - New upstream release
Modified:
mate-notification-daemon/trunk/PKGBUILD
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 42 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-05-09 11:50:20 UTC (rev 133049)
+++ PKGBUILD 2015-05-09 11:52:18 UTC (rev 133050)
@@ -1,31 +1,61 @@
# Maintainer : Martin Wimpress <code at flexion.org>
-pkgname=mate-notification-daemon
-pkgver=1.8.2
+_ver=1.10
+pkgbase=mate-notification-daemon
+pkgname=(${pkgbase} ${pkgbase}-gtk3)
+pkgver=${_ver}.0
pkgrel=1
+provides=('notification-daemon')
pkgdesc="Notification daemon for MATE"
url="http://mate-desktop.org"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL')
-depends=('dconf' 'dbus-glib' 'gtk2' 'libcanberra' 'libwnck' 'libnotify')
-makedepends=('mate-common' 'perl-xml-parser')
-groups=('mate')
-provides=('notification-daemon')
-source=("http://pub.mate-desktop.org/releases/1.8/${pkgname}-${pkgver}.tar.xz")
-sha1sums=('a35be55b434e19748d91b73b717f661d69cf525e')
+depends=('dconf' 'dbus-glib' 'gtk2' 'gtk3' 'libcanberra' 'libwnck' 'libwnck3' 'libnotify')
+makedepends=('mate-common')
+source=("http://pub.mate-desktop.org/releases/${_ver}/${pkgbase}-${pkgver}.tar.xz")
+sha1sums=('44407390f6216fcea5e02615d8e2b57b2502f358')
install=${pkgname}.install
+prepare() {
+ cd "${srcdir}"
+ mv "${pkgname}-${pkgver}" "${pkgbase}-gtk2"
+ cp -a "${pkgbase}-gtk2" "${pkgbase}-gtk3"
+}
+
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgbase}-gtk2"
./configure \
--prefix=/usr \
- --libexecdir=/usr/lib/${pkgname} \
+ --libexecdir=/usr/lib/${pkgbase} \
--with-gtk=2.0 \
--disable-static
make
+
+ cd "${srcdir}/${pkgbase}-gtk3"
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/${pkgbase} \
+ --with-gtk=3.0 \
+ --disable-static
+ make
}
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+package_mate-notification-daemon() {
+ pkgdesc+=' (GTK2 version)'
+ groups=('mate')
+ conflicts=("${pkgbase}-gtk3")
+ depends=('dconf' 'dbus-glib' 'gtk2' 'libcanberra' 'libwnck' 'libnotify')
+
+ cd "${srcdir}/${pkgbase}-gtk2"
make DESTDIR="${pkgdir}" install
}
+
+package_mate-notification-daemon-gtk3() {
+ pkgdesc+=' (GTK3 version [EXPERIMENTAL])'
+ groups=('mate-gtk3')
+ conflicts=("${pkgbase}")
+ depends=('dconf' 'dbus-glib' 'gtk3' 'libcanberra' 'libwnck3' 'libnotify')
+
+ cd "${srcdir}/${pkgbase}-gtk3"
+ make DESTDIR="${pkgdir}" install
+}
More information about the arch-commits
mailing list