PKGBUILD 916 Bytes
Newer Older
gnastyle's avatar
gnastyle committed
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 34
pkgname=plasma5-applets-redshift-control
_name=plasma-applet-redshift-control
pkgver=1.0.9
pkgrel=1
pkgdesc="Applet for monitoring CPU, GPU and other available temperature sensors."
arch=('x86_64')
url="https://github.com/kotelnik/plasma-applet-redshift-control"
license=('GPL')
group=('plasma5-applets')
depends=('plasma-workspace' 'qt5-graphicaleffects' 'redshift')
makedepends=('extra-cmake-modules')
source=("https://github.com/kotelnik/plasma-applet-redshift-control/archive/v${pkgver}.tar.gz")
sha256sums=('4ab5c0746840d0ab733099510dc45bb35ef2933c378aeeaf6c4ab29dfa233bdb')
 
prepare() {
  cd "${_name}-${pkgver}"
  mkdir -p build
}

build() {
  cd "${_name}-${pkgver}/build"
 
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DLIB_INSTALL_DIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
}
 
package() {
  cd "${_name}-${pkgver}"/build
 
  make install DESTDIR="${pkgdir}"
}