summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrederik2015-11-10 15:15:10 +0100
committerfrederik2015-11-10 15:15:10 +0100
commit4ee4717fc5940cbcf3dd75391248044bf60f7af9 (patch)
treee44b33970c56b323c9f77ae56a4dc5abb68e45df
downloadaur-4ee4717fc5940cbcf3dd75391248044bf60f7af9.tar.gz
initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD31
-rw-r--r--xfce-polkit.desktop7
-rw-r--r--xfce-polkit.install7
4 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..da8dbfe67f6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = xfce-polkit
+ pkgdesc = A simple PolicyKit authentication agent for XFCE
+ pkgver = 0.2
+ pkgrel = 1
+ url = https://github.com/ncopa/xfce-polkit
+ install = xfce-polkit.install
+ arch = x86_64
+ arch = i686
+ license = GPL
+ depends = polkit
+ depends = libxfce4ui
+ provides = polkit-gnome
+ conflicts = xfce-polkit-git
+ conflicts = polkit-gnome
+ source = https://github.com/ncopa/xfce-polkit/releases/download/v0.2/xfce-polkit-0.2.tar.gz
+ source = xfce-polkit.desktop
+ sha256sums = 8947a2582dacad78cfab89b3ee390e1a7810b2457343e6db558d6ee9a872be3a
+ sha256sums = 03b0974e70b6f02d708a90565f8289433995ae77d69be27f8675d6e7d7c12c89
+
+pkgname = xfce-polkit
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..93fd1e4b5b1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Frederik Schwan <frederik dot schwan at linux dot com>
+
+pkgname=xfce-polkit
+pkgver=0.2
+pkgrel=1
+pkgdesc='A simple PolicyKit authentication agent for XFCE'
+arch=('x86_64' 'i686')
+url="https://github.com/ncopa/xfce-polkit"
+license=(GPL)
+depends=('polkit' 'libxfce4ui')
+provides=('polkit-gnome')
+conflicts=('xfce-polkit-git' 'polkit-gnome')
+source=(https://github.com/ncopa/xfce-polkit/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+ xfce-polkit.desktop)
+sha256sums=('8947a2582dacad78cfab89b3ee390e1a7810b2457343e6db558d6ee9a872be3a'
+ '03b0974e70b6f02d708a90565f8289433995ae77d69be27f8675d6e7d7c12c89')
+install=xfce-polkit.install
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ aclocal
+ autoconf
+ automake --add-missing
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+ make
+}
+
+package() {
+ install -Dm755 "$srcdir/$pkgname-$pkgver/src/xfce-polkit" "$pkgdir/usr/lib/$pkgname/xfce-polkit"
+ install -Dm644 "$srcdir/xfce-polkit.desktop" "$pkgdir/etc/xdg/autostart/xfce-polkit.desktop"
+}
diff --git a/xfce-polkit.desktop b/xfce-polkit.desktop
new file mode 100644
index 00000000000..a7e871d2c4d
--- /dev/null
+++ b/xfce-polkit.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Type=Application
+Name=xfce-polkit
+Comment=A simple PolkicyKit authentication agent for XFCE
+Exec=/usr/lib/xfce-polkit/xfce-polkit
+Icon=gtk-dialog-authentication
+NotShowIn=GNOME;KDE;
diff --git a/xfce-polkit.install b/xfce-polkit.install
new file mode 100644
index 00000000000..75541fb69fc
--- /dev/null
+++ b/xfce-polkit.install
@@ -0,0 +1,7 @@
+post_upgrade() {
+ killall xfce-polkit
+ post_install
+}
+post_install() {
+ /usr/lib/xfce-polkit/xfce-polkit > /dev/null 2>&1 &
+}