summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdc46a7a66cbf46ee616a459045d6483bbc2e2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=powerkit
pkgver=1.0.0
pkgrel=7
pkgdesc='A Lightweight Desktop Independent full featured power manager'
arch=('x86_64')
url='https://github.com/rodlie/powerkit'
license=('BSD')
depends=('xscreensaver' 'upower' 'qt5-base' 'libxss')
makedepends=('xorg-xrandr' 'qt5-base')
optdepends=('adwaita-icon-theme')
source=("${pkgname}-${pkgver}.tar.xz::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha256sums=('fd7d0f88945cd6e1423dbcab4416bb327261845cab7d896b6ddab0c0a015e500')

build() {
  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() {
  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: