polkit-explorer-git: Refactor

This commit is contained in:
Manuel 2023-12-03 20:30:13 +01:00
parent be0a240ffb
commit c73c86f9fe
Signed by: Manuel
GPG key ID: 4085037435E1F07A

View file

@ -6,21 +6,21 @@ pkgver=15.fac8d70
pkgrel=3
pkgdesc='Present PolicyKit information in a human-readable form.'
arch=('any')
url="https://github.com/scarygliders/${pkgname//-git}"
url="https://github.com/scarygliders/${pkgname%-git}"
license=('ISC')
depends=('python-pyqt5' 'python-lxml')
conflicts=('polkit-explorer')
provides=('polkit-explorer')
source=("git+https://github.com/scarygliders/${pkgname//-git}.git")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname//-git}"
cd "${srcdir}/${pkgname%-git}"
printf '%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${pkgname//-git}"
cd "${srcdir}/${pkgname%-git}"
install -d -m755 "${pkgdir}"/{usr/bin,opt/$pkgname}
install -m644 Ui_*.py "${pkgdir}/opt/${pkgname}/"