Compare commits

...

4 commits

Author SHA1 Message Date
46993b23f5 upgpkg: polkit-explorer-git 22.3ad139b-5
* Update to Qt6
2024-10-25 20:28:30 +02:00
f07184a44e upgpkg: polkit-explorer-git 15.fac8d70-4: fix paths
* Use correct (non-git) paths
2024-04-11 19:39:30 +02:00
87d93370f6 Replace checksums with sha512 2024-04-08 23:10:35 +02:00
f3a7d417ca polkit-explorer-git: Refactor 2023-12-03 20:30:13 +01:00
2 changed files with 21 additions and 18 deletions

View file

@ -1,15 +1,16 @@
pkgbase = polkit-explorer-git pkgbase = polkit-explorer-git
pkgdesc = Present PolicyKit information in a human-readable form. pkgdesc = Present PolicyKit information in a human-readable form.
pkgver = 15.fac8d70 pkgver = 22.3ad139b
pkgrel = 3 pkgrel = 5
url = https://github.com/scarygliders/polkit-explorer url = https://github.com/scarygliders/polkit-explorer
arch = any arch = any
license = ISC license = ISC
depends = python-pyqt5 makedepends = git
depends = pyside6
depends = python-lxml depends = python-lxml
provides = polkit-explorer provides = polkit-explorer
conflicts = polkit-explorer conflicts = polkit-explorer
source = git+https://github.com/scarygliders/polkit-explorer.git source = git+https://github.com/scarygliders/polkit-explorer.git
sha256sums = SKIP sha512sums = SKIP
pkgname = polkit-explorer-git pkgname = polkit-explorer-git

View file

@ -2,32 +2,34 @@
# Contributor: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad> # Contributor: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad>
pkgname=polkit-explorer-git pkgname=polkit-explorer-git
pkgver=15.fac8d70 _pkgname=${pkgname%-git}
pkgrel=3 pkgver=22.3ad139b
pkgrel=5
pkgdesc='Present PolicyKit information in a human-readable form.' pkgdesc='Present PolicyKit information in a human-readable form.'
arch=('any') arch=('any')
url="https://github.com/scarygliders/${pkgname//-git}" url="https://github.com/scarygliders/${_pkgname}"
license=('ISC') license=('ISC')
depends=('python-pyqt5' 'python-lxml') depends=('pyside6' 'python-lxml')
makedepends=('git')
conflicts=('polkit-explorer') conflicts=('polkit-explorer')
provides=('polkit-explorer') provides=('polkit-explorer')
source=("git+https://github.com/scarygliders/${pkgname//-git}.git") source=("git+${url}.git")
sha256sums=('SKIP') sha512sums=('SKIP')
pkgver() { pkgver() {
cd "${srcdir}/${pkgname//-git}" cd "${srcdir}/${_pkgname}"
printf '%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" printf '%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
package() { package() {
cd "${srcdir}/${pkgname//-git}" cd "${srcdir}/${_pkgname}"
install -d -m755 "${pkgdir}"/{usr/bin,opt/$pkgname} install -d -m755 "${pkgdir}"/{usr/bin,opt/$_pkgname}
install -m644 Ui_*.py "${pkgdir}/opt/${pkgname}/" install -m644 Ui_*.py "${pkgdir}/opt/${_pkgname}/"
install -m755 'polkitex.py' "${pkgdir}/opt/${pkgname}/" install -m755 'polkitex.py' "${pkgdir}/opt/${_pkgname}/"
ln -s "/opt/${pkgname}/polkitex.py" "${pkgdir}/usr/bin/polkitex" ln -s "/opt/${_pkgname}/polkitex.py" "${pkgdir}/usr/bin/polkitex"
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm644 "polkitex.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" install -Dm644 "polkitex.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
} }