bookworm: simplify patch

This commit is contained in:
Đoàn Trần Công Danh 2024-06-16 22:18:27 +07:00 committed by Đoàn Trần Công Danh
parent 2ae612f35d
commit afd5fe96d5

View File

@ -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() {