ebe4e19613
Refactored PKGBUILD Changed versioning scheme
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Maintainer: Manuel Hüsers <manuel.huesers@uni-ol.de>
|
|
# Contributor: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad>
|
|
|
|
pkgname=polkit-explorer
|
|
pkgver=6.e27209d
|
|
pkgrel=1
|
|
pkgdesc='Present PolicyKit information in a human-readable form.'
|
|
arch=('any')
|
|
url="https://github.com/scarygliders/${pkgname}"
|
|
license=('ISC')
|
|
depends=('python2-pyqt4' 'python2-lxml')
|
|
source=("git://github.com/scarygliders/${pkgname}.git"
|
|
"${pkgname}.desktop")
|
|
sha256sums=('SKIP'
|
|
'4343e7c3c9e0dc03bfae8521ab4197661c6ddf4caf150ba4cf3369dc9550518a')
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${pkgname}"
|
|
printf '%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}"
|
|
local pydir='usr/lib/python2.7/site-packages/polkitex'
|
|
|
|
install -d -m755 "${pkgdir}"/{usr/bin,$pydir}
|
|
install -m644 Ui_*.py "${pkgdir}/${pydir}/"
|
|
|
|
sed -i 's/python$/python2/' 'polkitex.py'
|
|
install -m755 'polkitex.py' "${pkgdir}/${pydir}/"
|
|
ln -s "/${pydir}/polkitex.py" "${pkgdir}/usr/bin/polkitex"
|
|
|
|
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
install -Dm644 "${srcdir}/${pkgname}.desktop" \
|
|
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
|
}
|