# Maintainer: PktSurf <smlinux@pktsurf.in>
app=redshift
version=1.12
build=2sml
homepage="http://jonls.dk/redshift/"
download="https://github.com/jonls/redshift/releases/download/v$version/redshift-$version.tar.xz"
desc="Tool to adjust colour temperature of computer screen based on users surroundings"
requires="geoclue gtk3 libxcb libdrm libxxf86vm python3"

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

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

build() {
  ./configure \
    --prefix="" \
    --enable-drm \
    --enable-randr \
    --enable-vidmode \
    --enable-geoclue2

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
5da3be7ccf4c43af0fa6da42e4f0972e46901a3ab7366a1412e7bcb573eefcf85a684b63068e6f54df04ab1427d6f58fff92091110b99ae848bc3769d703125b  redshift-1.12.tar.lz
"
