Python 3 compatibility

This commit is contained in:
Manuel 2021-04-02 15:04:40 +02:00
parent 4d78a035ed
commit 9a19ab8611
Signed by: Manuel
GPG key ID: 4085037435E1F07A
2 changed files with 17 additions and 18 deletions

View file

@ -1,13 +1,13 @@
pkgbase = polkit-explorer
pkgdesc = Present PolicyKit information in a human-readable form.
pkgver = 12.065314e
pkgrel = 2
url = https://github.com/scarygliders/polkit-explorer
pkgver = 14.6c912f1
pkgrel = 1
url = https://github.com/ScrelliCopter/polkit-explorer
arch = any
license = ISC
depends = python2-pyqt5
depends = python2-lxml
source = git://github.com/scarygliders/polkit-explorer.git
depends = python-pyqt5
depends = python-lxml
source = git://github.com/ScrelliCopter/polkit-explorer.git#branch=python3
sha256sums = SKIP
pkgname = polkit-explorer

View file

@ -1,15 +1,15 @@
# Maintainer: Manuel Hüsers <manuel.huesers@uni-ol.de>
# Maintainer: Manuel Hüsers <aur@huesers.de>
# Contributor: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad>
pkgname=polkit-explorer
pkgver=12.065314e
pkgrel=2
pkgver=14.6c912f1
pkgrel=1
pkgdesc='Present PolicyKit information in a human-readable form.'
arch=('any')
url="https://github.com/scarygliders/${pkgname}"
url="https://github.com/ScrelliCopter/${pkgname}"
license=('ISC')
depends=('python2-pyqt5' 'python2-lxml')
source=("git://github.com/scarygliders/${pkgname}.git")
depends=('python-pyqt5' 'python-lxml')
source=("git://github.com/ScrelliCopter/${pkgname}.git#branch=python3")
sha256sums=('SKIP')
pkgver() {
@ -19,13 +19,12 @@ pkgver() {
package() {
cd "${srcdir}/${pkgname}"
local pydir='usr/lib/python2.7/site-packages/polkitex'
install -d -m755 "${pkgdir}"/{usr/bin,$pydir}
install -m644 Ui_*.py "${pkgdir}/${pydir}/"
install -d -m755 "${pkgdir}"/{usr/bin,opt/$pkgname}
install -m644 Ui_*.py "${pkgdir}/opt/${pkgname}/"
install -m755 'polkitex.py' "${pkgdir}/${pydir}/"
ln -s "/${pydir}/polkitex.py" "${pkgdir}/usr/bin/polkitex"
install -m755 'polkitex.py' "${pkgdir}/opt/${pkgname}/"
ln -s "/opt/${pkgname}/polkitex.py" "${pkgdir}/usr/bin/polkitex"
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "polkitex.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"