From b41e09121f96675abe604bdb0ed71ba47e3462d8 Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Sat, 25 Jul 2015 01:07:05 +0200 Subject: [PATCH] upd --- PKGBUILD | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 952c3f8..8ac74e2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,38 +1,34 @@ # Maintainer: Alad Wenter pkgname=polkit-explorer -_pkgname=Polkit-Explorer-master pkgver=1 -pkgrel=6 +pkgrel=7 pkgdesc="Present PolicyKit information in a human-readable form." -arch=('any') url="https://github.com/scarygliders/Polkit-Explorer" license=('ISC') +arch=('any') depends=('python2-pyqt4' 'python2-lxml') -source=('https://github.com/scarygliders/Polkit-Explorer/archive/master.zip' +source=("https://github.com/scarygliders/Polkit-Explorer/archive/master.zip" 'polkit-explorer.desktop') -sha256sums=('877b909d2f85d7c5c448b75a15fc193b1c18882f4548bbd9dbce3805803ae751' +sha256sums=('bc90ca03ee4d216bfb5e415d625c1449af5c87898f98305b48b10adf730c75d6' '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 + cd Polkit-Explorer-master + local pydir=usr/lib/python2.7/site-packages/polkitex + sed -i 's/python$/python2/' polkitex.py + + 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 }