desktop/plasma5-applets-redshift-control/PKGBUILD
2016-02-07 18:14:46 +00:00

35 lines
887 B
Bash

pkgname=plasma5-applets-redshift-control
_name=plasma-applet-redshift-control
pkgver=1.0.11
pkgrel=1
pkgdesc="Applet for controlling redshift (screen temperature modifying)"
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=('645513ffdb834cd0d6df3c1e75805ab8a062c3f159df1cb15ae6222b99fbe0b1')
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"
}