arch-packages/PKGBUILD

34 lines
1 KiB
Text
Raw Normal View History

2021-04-02 15:04:40 +02:00
# Maintainer: Manuel Hüsers <aur@huesers.de>
# Contributor: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad>
2015-06-16 12:29:46 +02:00
pkgname=polkit-explorer-git
2021-07-04 17:03:36 +02:00
pkgver=15.fac8d70
pkgrel=3
pkgdesc='Present PolicyKit information in a human-readable form.'
2015-07-25 01:07:05 +02:00
arch=('any')
2023-12-03 20:30:13 +01:00
url="https://github.com/scarygliders/${pkgname%-git}"
license=('ISC')
2021-04-02 15:04:40 +02:00
depends=('python-pyqt5' 'python-lxml')
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
pkgver() {
2023-12-03 20:30:13 +01:00
cd "${srcdir}/${pkgname%-git}"
printf '%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2015-06-16 12:29:46 +02:00
package() {
2023-12-03 20:30:13 +01:00
cd "${srcdir}/${pkgname%-git}"
2015-08-07 15:42:44 +02:00
2021-04-02 15:04:40 +02:00
install -d -m755 "${pkgdir}"/{usr/bin,opt/$pkgname}
install -m644 Ui_*.py "${pkgdir}/opt/${pkgname}/"
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"
2015-06-16 12:29:46 +02:00
}