diff --git a/srcpkgs/evemu/template b/srcpkgs/evemu/template index e78bb41435c..318860f92bd 100644 --- a/srcpkgs/evemu/template +++ b/srcpkgs/evemu/template @@ -1,7 +1,7 @@ # Template file for 'evemu' pkgname=evemu version=2.7.0 -revision=3 +revision=4 build_style=gnu-configure hostmakedepends="pkg-config python3 asciidoc xmlto" makedepends="libevdev-devel" @@ -12,6 +12,16 @@ homepage="https://freedesktop.org/wiki/Evemu/" distfiles=${FREEDESKTOP_SITE}/evemu/evemu-$version.tar.xz checksum=78c9400d55eeeb5ab75161360543f9376438c4da4934cb34cdda5b46021ae379 +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 + : > config-aux/py-compile + cat > config-aux/py-compile <<-'EOF' + #!/bin/sh + : "$@" + EOF +} + post_install() { sed -n '/Copyright/,/IN THE SOFTWARE/p' src/evemu.c >LICENSE vlicense LICENSE