Compare commits

..

No commits in common. "f07184a44e2e6b0e56faa4dc1e9b1da9ff70f23f" and "c39956b6dc507b84a32c6a259ce50b43074b9832" have entirely different histories.

2 changed files with 14 additions and 17 deletions

View file

@ -1,16 +1,15 @@
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 = 15.fac8d70
pkgrel = 4 pkgrel = 3
url = https://github.com/scarygliders/polkit-explorer url = https://github.com/scarygliders/polkit-explorer
arch = any arch = any
license = ISC license = ISC
makedepends = git
depends = python-pyqt5 depends = python-pyqt5
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
sha512sums = SKIP sha256sums = SKIP
pkgname = polkit-explorer-git pkgname = polkit-explorer-git

View file

@ -2,34 +2,32 @@
# 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
_pkgname=${pkgname%-git}
pkgver=15.fac8d70 pkgver=15.fac8d70
pkgrel=4 pkgrel=3
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}" url="https://github.com/scarygliders/${pkgname//-git}"
license=('ISC') license=('ISC')
depends=('python-pyqt5' 'python-lxml') depends=('python-pyqt5' 'python-lxml')
makedepends=('git')
conflicts=('polkit-explorer') conflicts=('polkit-explorer')
provides=('polkit-explorer') provides=('polkit-explorer')
source=("git+${url}.git") source=("git+https://github.com/scarygliders/${pkgname//-git}.git")
sha512sums=('SKIP') sha256sums=('SKIP')
pkgver() { pkgver() {
cd "${srcdir}/${_pkgname}" cd "${srcdir}/${pkgname//-git}"
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}" cd "${srcdir}/${pkgname//-git}"
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"
} }