summaryrefslogtreecommitdiff
path: root/community/system-tools-backends
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/system-tools-backends
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/system-tools-backends')
-rw-r--r--community/system-tools-backends/PKGBUILD37
-rw-r--r--community/system-tools-backends/system-tools-backends.install12
2 files changed, 49 insertions, 0 deletions
diff --git a/community/system-tools-backends/PKGBUILD b/community/system-tools-backends/PKGBUILD
new file mode 100644
index 000000000..dc9b3e7f8
--- /dev/null
+++ b/community/system-tools-backends/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer : Ionut Biru <ibiru@archlinux.org>
+# Contributor: Hugo Doria <hugo@archlinux.org>
+
+pkgname=system-tools-backends
+pkgver=2.10.1
+pkgrel=1
+pkgdesc='Backends for Gnome System Tools.'
+arch=('i686' 'x86_64')
+url='http://system-tools-backends.freedesktop.org/'
+license=('GPL')
+depends=('perl>=5.12.1' 'perl-net-dbus' 'dbus>=1.4.0' 'polkit>=0.98' 'dbus-glib')
+makedepends=('perlxml' 'pkgconfig' 'intltool')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.10/${pkgname}-${pkgver}.tar.bz2)
+install=system-tools-backends.install
+sha256sums=('0c1cfdf5f0550c0ccacbbc4f00ed059ab9ea483d48138132db44b3a20575d7b4')
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ ./configure \
+ --prefix=/usr \
+ --with-dbus-sys=/etc/dbus-1/system.d \
+ --localstatedir=/var \
+ --mandir=/usr/share \
+ --disable-static
+
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ #clean up man
+ rm -rf $pkgdir/usr/share/system-tools-backends-2.0/modules/share/
+}
diff --git a/community/system-tools-backends/system-tools-backends.install b/community/system-tools-backends/system-tools-backends.install
new file mode 100644
index 000000000..e83a93525
--- /dev/null
+++ b/community/system-tools-backends/system-tools-backends.install
@@ -0,0 +1,12 @@
+post_install() {
+ echo "==> Daemon method deprecated. Now is starting automatically at login"
+ echo "==> Remove stbd from DAEMONS list"
+}
+
+post_upgrade() {
+ if [ `vercmp $2 2.6.1-2` -eq 0 ]; then
+ echo "Removing stb-admin group"
+ groupdel stb-admin &> /dev/null
+ fi
+ post_install $1
+}