[arch-commits] Commit in mate-power-manager/trunk (PKGBUILD)
Martin Wimpress
flexiondotorg at archlinux.org
Sat May 9 13:47:17 UTC 2015
Date: Saturday, May 9, 2015 @ 15:47:17
Author: flexiondotorg
Revision: 133066
upgpkg: mate-power-manager 1.10.0-1 - New upstream release
Modified:
mate-power-manager/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++----------------
1 file changed, 20 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-05-09 13:40:58 UTC (rev 133065)
+++ PKGBUILD 2015-05-09 13:47:17 UTC (rev 133066)
@@ -1,43 +1,47 @@
# Maintainer : Martin Wimpress <code at flexion.org>
-pkgname=mate-power-manager
-pkgver=1.8.1
-_major=$(echo ${pkgver} | cut -d= -f2 | cut -d. -f1-2)
-pkgrel=4
-pkgdesc="Power management tool for the MATE desktop."
+_ver=1.10
+_pkgbase=mate-power-manager
+pkgname=(${_pkgbase})
+pkgver=${_ver}.0
+pkgrel=1
+pkgdesc="Power management tool for the MATE desktop (GTK2 version)"
url="http://mate-desktop.org"
arch=('i686' 'x86_64')
license=('GPL')
-depends=('dbus-glib' 'dconf' 'libcanberra' 'libgnome-keyring' 'libnotify'
- 'libunique' 'upower')
+depends=('dbus-glib' 'dconf' 'gtk2' 'libcanberra' 'libgnome-keyring'
+ 'libnotify' 'libunique' 'mate-desktop>=1.10' 'upower')
makedepends=('docbook2x' 'docbook-xml' 'mate-common' 'mate-panel' 'xmlto' 'yelp-tools')
optdepends=('mate-panel: Set brightness and inhibit power management from the panel'
'yelp: for reading MATE help documents')
+source=("http://pub.mate-desktop.org/releases/${_ver}/${_pkgbase}-${pkgver}.tar.xz")
groups=('mate-extra')
-source=("http://pub.mate-desktop.org/releases/${_major}/${pkgname}-${pkgver}.tar.xz")
-sha1sums=('0f2d509b8af30e79013de564ea9a0a3d7ccd7c93')
-install=${pkgname}.install
+conflicts=("${_pkgbase}-gtk3")
+sha1sums=('7540735374e5892c26a9c06f9c973742ef873e74')
+install=${_pkgbase}.install
prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- #Work around a problem where the .sgml fail to parse.
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ #Work around a problem where the .sgml fails to parse.
sed -e 's:@HAVE_DOCBOOK2MAN_TRUE at .*::' -i man/Makefile.in
}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
./configure \
--prefix=/usr \
- --libexecdir=/usr/lib/${pkgname} \
+ --libexecdir=/usr/lib/${_pkgbase} \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--enable-applets \
- --enable-unique
+ --enable-unique \
+ --with-gtk=2.0 \
+ --disable-strict
make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
More information about the arch-commits
mailing list