redshift: rebuild for Python 3.12

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:02:55 -04:00
parent 1128954bc4
commit c4bfdfa2cf

View file

@ -1,7 +1,7 @@
# Template file for 'redshift' # Template file for 'redshift'
pkgname=redshift pkgname=redshift
version=1.12 version=1.12
revision=7 revision=8
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-gui --enable-geoclue2" configure_args="--enable-gui --enable-geoclue2"
hostmakedepends="gettext-devel intltool pkg-config python3-devel" 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" distfiles="https://github.com/jonls/redshift/releases/download/v${version}/redshift-${version}.tar.xz"
checksum=d2f8c5300e3ce2a84fe6584d2f1483aa9eadc668ab1951b2c2b8a03ece3a22ba 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() { post_install() {
vsconf redshift.conf.sample vsconf redshift.conf.sample
} }