summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b476f071dcdeeb482a5e5fabff65eb079fc68759 (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
34
35
36
37
38
# Maintainer: Simone Gaiarin <simgunz@gmail.com>

pkgname=plasma5-applets-redshift-git
_gitpkgname=redshift-plasmoid
pkgver=r188.3dc240e
pkgrel=1
pkgdesc='Redshift plasmoid provides a configuration interface and allows to start/stop Redshift daemon either manually or automatically based on the current activity. Plasma5 development version.'
arch=('any')
url='http://simgunz.org/projects/redshift-plasmoid/'
license=('GPL')
depends=('plasma-workspace' 'redshift')
makedepends=('git' 'extra-cmake-modules')
install='redshift.install'
screenshot='http://simgunz.org/wp-content/uploads/2012/10/redshift-scr-1.png'
source=("git+https://github.com/simgunz/${_gitpkgname}.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitpkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${_gitpkgname}"
  git checkout plasma5-porting
  cd ${srcdir}
  mkdir -p "build"
  cd build
  cmake ../$_gitpkgname \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
}

package() {
  cd "${srcdir}/build"
  make DESTDIR="$pkgdir" install
}