void-packages/srcpkgs/redshift/template
2016-01-03 10:56:34 +01:00

31 lines
1.1 KiB
Bash

# Template file for 'redshift'
pkgname=redshift
version=1.11
revision=1
build_style=gnu-configure
build_options="geoclue2"
configure_args="--enable-gui --disable-geoclue $(vopt_enable geoclue2)
ac_cv_path_PYTHON=/usr/bin/python3.4"
hostmakedepends="pkg-config intltool gettext-devel python3.4-devel"
makedepends="libXxf86vm-devel libdrm-devel $(vopt_if geoclue2 'geoclue2 glib-devel')"
depends="$(vopt_if geoclue2 geoclue2)"
short_desc="Adjusts the color temperature of your screen to your surroundings"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://jonls.dk/redshift/"
distfiles="https://github.com/jonls/redshift/releases/download/v${version}/redshift-${version}.tar.xz"
checksum=10e350f93951c0521dd6f103d67a485972c307214f036e009acea2978fe4f359
redshift-gtk_package() {
depends="${sourcepkg}-${version}_${revision} gtk+3 python3.4-gobject
python3.4-xdg desktop-file-utils"
pycompile_version="3.4"
pycompile_module="redshift_gtk"
short_desc+=" - GTK+ UI"
pkg_install() {
vmove usr/bin/redshift-gtk
vmove usr/lib
vmove usr/share/applications
vmove usr/share/icons
}
}