2021-04-02 15:04:40 +02:00
|
|
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
2016-02-06 20:10:04 +01:00
|
|
|
# Contributor: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad>
|
2015-06-16 12:29:46 +02:00
|
|
|
|
2021-10-17 10:16:20 +02:00
|
|
|
pkgname=polkit-explorer-git
|
2024-04-11 19:39:30 +02:00
|
|
|
_pkgname=${pkgname%-git}
|
2024-10-25 20:28:30 +02:00
|
|
|
pkgver=22.3ad139b
|
|
|
|
pkgrel=5
|
2016-02-06 20:10:04 +01:00
|
|
|
pkgdesc='Present PolicyKit information in a human-readable form.'
|
2015-07-25 01:07:05 +02:00
|
|
|
arch=('any')
|
2024-04-11 19:39:30 +02:00
|
|
|
url="https://github.com/scarygliders/${_pkgname}"
|
2016-02-06 20:10:04 +01:00
|
|
|
license=('ISC')
|
2024-10-25 20:28:30 +02:00
|
|
|
depends=('pyside6' 'python-lxml')
|
2024-04-11 19:39:30 +02:00
|
|
|
makedepends=('git')
|
2021-10-17 10:16:20 +02:00
|
|
|
conflicts=('polkit-explorer')
|
|
|
|
provides=('polkit-explorer')
|
2023-12-03 20:30:13 +01:00
|
|
|
source=("git+${url}.git")
|
2024-04-08 23:10:35 +02:00
|
|
|
sha512sums=('SKIP')
|
2015-06-16 12:29:46 +02:00
|
|
|
|
2016-02-06 20:10:04 +01:00
|
|
|
pkgver() {
|
2024-04-11 19:39:30 +02:00
|
|
|
cd "${srcdir}/${_pkgname}"
|
2016-02-06 20:10:04 +01:00
|
|
|
printf '%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2015-06-16 12:29:46 +02:00
|
|
|
package() {
|
2024-04-11 19:39:30 +02:00
|
|
|
cd "${srcdir}/${_pkgname}"
|
2015-08-07 15:42:44 +02:00
|
|
|
|
2024-04-11 19:39:30 +02:00
|
|
|
install -d -m755 "${pkgdir}"/{usr/bin,opt/$_pkgname}
|
|
|
|
install -m644 Ui_*.py "${pkgdir}/opt/${_pkgname}/"
|
2021-04-02 15:04:40 +02:00
|
|
|
|
2024-04-11 19:39:30 +02:00
|
|
|
install -m755 'polkitex.py' "${pkgdir}/opt/${_pkgname}/"
|
|
|
|
ln -s "/opt/${_pkgname}/polkitex.py" "${pkgdir}/usr/bin/polkitex"
|
2016-02-06 20:10:04 +01:00
|
|
|
|
2024-04-11 19:39:30 +02:00
|
|
|
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
|
|
|
|
install -Dm644 "polkitex.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
|
2015-06-16 12:29:46 +02:00
|
|
|
}
|