From 98f286ee783137bc689b2970a2a202c5a19db6a2 Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Tue, 16 Jun 2015 12:29:46 +0200 Subject: [PATCH] init --- .SRCINFO | 18 ++++++++++++++++++ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ polkit-explorer.desktop | 10 ++++++++++ 3 files changed, 66 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 polkit-explorer.desktop diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..9e32040 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by makepkg 4.2.1 +# Mon Mar 9 17:00:02 UTC 2015 +pkgbase = polkit-explorer + pkgdesc = Present PolicyKit information in a human-readable form. + pkgver = 1 + pkgrel = 5 + url = https://github.com/scarygliders/Polkit-Explorer + arch = any + license = ISC + depends = python2-pyqt4 + depends = python2-lxml + source = https://github.com/scarygliders/Polkit-Explorer/archive/master.zip + source = polkit-explorer.desktop + sha256sums = 877b909d2f85d7c5c448b75a15fc193b1c18882f4548bbd9dbce3805803ae751 + sha256sums = 4343e7c3c9e0dc03bfae8521ab4197661c6ddf4caf150ba4cf3369dc9550518a + +pkgname = polkit-explorer + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..952c3f8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Alad Wenter + +pkgname=polkit-explorer +_pkgname=Polkit-Explorer-master +pkgver=1 +pkgrel=6 + +pkgdesc="Present PolicyKit information in a human-readable form." +arch=('any') +url="https://github.com/scarygliders/Polkit-Explorer" +license=('ISC') + +depends=('python2-pyqt4' 'python2-lxml') +source=('https://github.com/scarygliders/Polkit-Explorer/archive/master.zip' + 'polkit-explorer.desktop') +sha256sums=('877b909d2f85d7c5c448b75a15fc193b1c18882f4548bbd9dbce3805803ae751' + '4343e7c3c9e0dc03bfae8521ab4197661c6ddf4caf150ba4cf3369dc9550518a') + +prepare() { + sed -i 's/python$/python2/' "$_pkgname"/polkitex.py +} + +package() { + cd "$_pkgname" + pydir=usr/lib/python2.7/site-packages/polkitex + + install -Dm755 polkitex.py "$pkgdir/$pydir"/polkitex.py + install -dm755 "$pkgdir"/usr/bin + ln -s /"$pydir"/polkitex.py "$pkgdir"/usr/bin/polkitex + + for i in Ui_*.py; do + install -Dm644 "$i" "$pkgdir/$pydir/$i" + done + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/polkit-explorer/LICENSE + install -Dm644 "$srcdir"/polkit-explorer.desktop \ + "$pkgdir"/usr/share/applications/polkit-explorer.desktop +} diff --git a/polkit-explorer.desktop b/polkit-explorer.desktop new file mode 100644 index 0000000..57ce0da --- /dev/null +++ b/polkit-explorer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Polkit-explorer +Comment=Present PolicyKit information in a human-readable form. +Exec=polkitex +Icon=emblem-system +Terminal=false +StartupNotify=false +Categories=System;