41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'redshift'
|
|
pkgname=redshift
|
|
version=1.12
|
|
revision=8
|
|
build_style=gnu-configure
|
|
configure_args="--enable-gui --enable-geoclue2"
|
|
hostmakedepends="gettext-devel intltool pkg-config python3-devel"
|
|
makedepends="libXxf86vm-devel libdrm-devel geoclue2 glib-devel"
|
|
short_desc="Adjusts the color temperature of your screen to your surroundings"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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
|
|
|
|
post_extract() {
|
|
# The py-compile helper uses the imp module, removed in Python 3.12;
|
|
# besides, we don't want the module pre-compiled anyway, so just drop it
|
|
: > py-compile
|
|
cat > py-compile <<-'EOF'
|
|
#!/bin/sh
|
|
: "$@"
|
|
EOF
|
|
}
|
|
|
|
post_install() {
|
|
vsconf redshift.conf.sample
|
|
}
|
|
|
|
redshift-gtk_package() {
|
|
depends="${sourcepkg}-${version}_${revision} gtk+3 python3-gobject
|
|
python3-xdg desktop-file-utils"
|
|
short_desc+=" - GTK+ UI"
|
|
pkg_install() {
|
|
vmove usr/bin/redshift-gtk
|
|
vmove usr/lib
|
|
vmove usr/share/applications
|
|
vmove usr/share/icons
|
|
}
|
|
}
|