diff --git a/srcpkgs/bookworm/template b/srcpkgs/bookworm/template index 52e1007be6f..c28e11b9e88 100644 --- a/srcpkgs/bookworm/template +++ b/srcpkgs/bookworm/template @@ -20,10 +20,9 @@ skip_extraction="python3.patch" python_version=3 post_patch() { - # remove the binary pyc files and file that needs to be patched separately - # also apply https://github.com/babluboy/bookworm/commit/5719d4367c2bded1c3660238465857d5d6f7f8fc - patch -Np1 < <(sed 's,#! /usr/bin/python,#!usr/bin/env python,; /^diff --git .*\.pyc$/,/^diff --git/d; /^--- .*constants.vala.in$/q' \ - "${XBPS_SRCDISTDIR}/${pkgname}-${version}/python3.patch") + vsrccopy python3.patch . + PATH=/usr/libexec/chroot-git:$PATH + git apply --include ="**/*.py" --whitespace=nowarn python3.patch } post_install() {