From c73c86f9fee089fbccb67db2de0c29a075c8211b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Sun, 3 Dec 2023 20:30:13 +0100 Subject: [PATCH] polkit-explorer-git: Refactor --- polkit-explorer-git/PKGBUILD | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polkit-explorer-git/PKGBUILD b/polkit-explorer-git/PKGBUILD index 2424e6d..f53d881 100644 --- a/polkit-explorer-git/PKGBUILD +++ b/polkit-explorer-git/PKGBUILD @@ -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}/"