diff --git a/srcpkgs/redshift/template b/srcpkgs/redshift/template index 491249f9b1e..eefb6ee9ce1 100644 --- a/srcpkgs/redshift/template +++ b/srcpkgs/redshift/template @@ -1,7 +1,7 @@ # Template file for 'redshift' pkgname=redshift version=1.12 -revision=7 +revision=8 build_style=gnu-configure configure_args="--enable-gui --enable-geoclue2" hostmakedepends="gettext-devel intltool pkg-config python3-devel" @@ -13,6 +13,16 @@ 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 }