2016-02-06 20:10:04 +01:00
|
|
|
# Maintainer: Manuel Hüsers <manuel.huesers@uni-ol.de>
|
|
|
|
# Contributor: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad>
|
2015-06-16 12:29:46 +02:00
|
|
|
|
|
|
|
pkgname=polkit-explorer
|
2017-10-03 15:00:55 +02:00
|
|
|
pkgver=10.84983b1
|
2016-02-06 20:10:04 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Present PolicyKit information in a human-readable form.'
|
2015-07-25 01:07:05 +02:00
|
|
|
arch=('any')
|
2016-02-06 20:10:04 +01:00
|
|
|
url="https://github.com/scarygliders/${pkgname}"
|
|
|
|
license=('ISC')
|
2015-06-16 12:29:46 +02:00
|
|
|
depends=('python2-pyqt4' 'python2-lxml')
|
2017-10-03 15:00:55 +02:00
|
|
|
source=("git://github.com/scarygliders/${pkgname}.git")
|
|
|
|
sha256sums=('SKIP')
|
2015-06-16 12:29:46 +02:00
|
|
|
|
2016-02-06 20:10:04 +01:00
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
printf '%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2015-06-16 12:29:46 +02:00
|
|
|
package() {
|
2016-02-06 20:10:04 +01:00
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
local pydir='usr/lib/python2.7/site-packages/polkitex'
|
2015-08-07 15:42:44 +02:00
|
|
|
|
2016-02-06 20:10:04 +01:00
|
|
|
install -d -m755 "${pkgdir}"/{usr/bin,$pydir}
|
|
|
|
install -m644 Ui_*.py "${pkgdir}/${pydir}/"
|
|
|
|
|
|
|
|
install -m755 'polkitex.py' "${pkgdir}/${pydir}/"
|
|
|
|
ln -s "/${pydir}/polkitex.py" "${pkgdir}/usr/bin/polkitex"
|
2015-07-25 01:07:05 +02:00
|
|
|
|
2016-02-06 20:10:04 +01:00
|
|
|
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2017-10-03 15:00:55 +02:00
|
|
|
install -Dm644 "polkitex.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
2015-06-16 12:29:46 +02:00
|
|
|
}
|