redshift: enable geoclue2

* unconditionally build with geoclue2 support, so it can be added as
  optional runtime dependency
* add redshift.conf.sample

Closes: #35785 [via git-merge-pr]
This commit is contained in:
tibequadorian 2022-02-22 19:01:28 +01:00 committed by Piraty
parent fec5a706d4
commit f33f4b7d8b
No known key found for this signature in database
GPG Key ID: 82F2CC796BD07077
1 changed files with 7 additions and 6 deletions

View File

@ -1,20 +1,21 @@
# Template file for 'redshift'
pkgname=redshift
version=1.12
revision=5
revision=6
build_style=gnu-configure
configure_args="--enable-gui --disable-geoclue $(vopt_enable geoclue2)"
configure_args="--enable-gui --enable-geoclue2"
hostmakedepends="gettext-devel intltool pkg-config python3-devel"
makedepends="libXxf86vm-devel libdrm-devel $(vopt_if geoclue2 'geoclue2
glib-devel')"
depends="$(vopt_if geoclue2 'geoclue2')"
makedepends="libXxf86vm-devel libdrm-devel geoclue2 glib-devel"
short_desc="Adjusts the color temperature of your screen to your surroundings"
maintainer="tibequadorian <tibequadorian@posteo.de>"
license="GPL-3.0-or-later"
homepage="http://jonls.dk/redshift/"
distfiles="https://github.com/jonls/redshift/releases/download/v${version}/redshift-${version}.tar.xz"
checksum=d2f8c5300e3ce2a84fe6584d2f1483aa9eadc668ab1951b2c2b8a03ece3a22ba
build_options="geoclue2"
post_install() {
vsconf redshift.conf.sample
}
redshift-gtk_package() {
depends="${sourcepkg}-${version}_${revision} gtk+3 python3-gobject