app=redshift
version=1.12
build=1sml
homepage="http://jonls.dk/redshift/"
download="https://github.com/jonls/redshift/releases/download/v1.12/redshift-1.12.tar.xz"
desc="Tool to adjust colour temperature of computer screen based on users surroundings"
requires="geoclue gtk3 libxcb libdrm libxxf86vm python3"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --enable-drm \
    --enable-randr \
    --enable-vidmode \
    --enable-geoclue2 \
    --disable-nls

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
225e222e5f2c55be4571094ccaf02a92e162dfc35fd0fe504084e21e358b888a72f9992f9f9edaf1d496eb673af74a0d825ae5cf6ef7f0f1ab51d32419722c32  redshift-1.12.tar.xz
"
