summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf3ce32f036fdc7aacee9ad6816db2ff9e4bf425 (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
39
40
41
42
# Maintainer: Ranieri Althoff <ranisalt+aur at gmail dot com>

pkgname=redshift-minimal-git
pkgver=1.12.r1.g01139a1
pkgrel=1
pkgdesc='Adjusts the color temperature of your screen according to your surroundings, with minimal dependencies (development version)'
arch=('i686' 'x86_64')
url='http://jonls.dk/redshift/'
license=('GPL3')
depends=('libxxf86vm')
makedepends=('git' 'intltool')
provides=('redshift')
conflicts=('redshift')
source=(redshift::"git+https://github.com/jonls/redshift.git")
sha256sums=('SKIP')

pkgver() {
  cd redshift
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'
}

build() {
  cd redshift

  ./bootstrap
  ./configure \
      --prefix=/usr \
      --disable-drm \
      --disable-geoclue \
      --disable-geoclue2 \
      --disable-gui \
      --disable-ubuntu \
      --disable-vidmode \
      --with-systemduserunitdir=/usr/lib/systemd/user \

  make
}

package() {
  make -C redshift DESTDIR="$pkgdir" install
  rm "${pkgdir}/usr/lib/systemd/user/redshift-gtk.service"
}