summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD28
2 files changed, 17 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b222ba52d40..00147412ab7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,9 +11,8 @@ pkgbase = powerkit
depends = xscreensaver
depends = upower
optdepends = adwaita-icon-theme
- provides = powerkit
- source = https://github.com/rodlie/powerkit/releases/download/1.0.0/powerkit-1.0.0.tar.xz
- md5sums = e5a613f2219c0491d1bdae1fa1afe4d5
+ source = powerkit-1.0.0.tar.xz::https://github.com/rodlie/powerkit/releases/download/1.0.0/powerkit-1.0.0.tar.xz
+ sha256sums = fd7d0f88945cd6e1423dbcab4416bb327261845cab7d896b6ddab0c0a015e500
pkgname = powerkit
diff --git a/PKGBUILD b/PKGBUILD
index bde8ac15833..163512f2e0a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
-pkgname=('powerkit')
+pkgname=powerkit
pkgver=1.0.0
pkgrel=6
pkgdesc='A Lightweight Desktop Independent full featured power manager'
@@ -10,22 +10,24 @@ license=('BSD-3-Clause')
depends=('xscreensaver' 'upower')
makedepends=('xss' 'xorg-xrandr' 'qt5-base')
optdepends=('adwaita-icon-theme')
-provides=('powerkit')
-source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
-md5sums=('e5a613f2219c0491d1bdae1fa1afe4d5')
+source=("${pkgname}-${pkgver}.tar.xz::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
+sha256sums=('fd7d0f88945cd6e1423dbcab4416bb327261845cab7d896b6ddab0c0a015e500')
build() {
- msg2 'Building powerkit ...'
- cd "${srcdir}/${pkgname}-${pkgver}"
- mkdir build
- cd "${srcdir}/${pkgname}-${pkgver}/build"
- qmake PREFIX="/usr" CONFIG+=install_udev_rules CONFIG+=bundle_icons ..
- make
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
+ qmake PREFIX=/usr CONFIG+=install_udev_rules CONFIG+=bundle_icons ..
+ make
}
package() {
- msg2 'Installing powerkit ...'
- cd "${pkgname}-${pkgver}/build"
- make INSTALL_ROOT="${pkgdir}" install
+ cd "${pkgname}-${pkgver}/build"
+ make INSTALL_ROOT="${pkgdir}" install
+ install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et: \ No newline at end of file