Fix pyproject.toml based on upstream fix
Upstream commit doesn’t cleanly apply to released tar.gz. Instead apply the fix using sed; there’re already other patches which are applied thus to the same pyproject.toml.
This commit is contained in:
@@ -48,19 +48,15 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
options=(!strip)
|
||||
source=(
|
||||
"${_realname}-${pkgver}.tar.gz"::"https://github.com/ManimCommunity/${_realname}/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz"
|
||||
https://github.com/ManimCommunity/manim/commit/44f78f1dfdd7498542869fc06bb39619f2b2d57b.patch
|
||||
)
|
||||
sha512sums=('145024a55541ccdb982431c877a8d98791e5ba51d7d4b1f3b2077b753207a9c56930d52dbfaa773e76b26f9e37f4c33466ef6ee62defe374819df44f80a32886'
|
||||
'56b4d960f1044a4fab2b1123157fe0fe8549c2aaef1ae3ea016707a1dd4a139bed0e5e7fa0cdaf5f42d071357a1436bacec9b58f2dd303ee3c4601b8cd8afd73'
|
||||
)
|
||||
sha512sums=('145024a55541ccdb982431c877a8d98791e5ba51d7d4b1f3b2077b753207a9c56930d52dbfaa773e76b26f9e37f4c33466ef6ee62defe374819df44f80a32886')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
|
||||
patch -Np1 -i "${srcdir}/44f78f1dfdd7498542869fc06bb39619f2b2d57b.patch"
|
||||
|
||||
sed -i 's/cloup = "^0.13.0"/cloup = "*"/g' pyproject.toml
|
||||
sed -i 's/mapbox-earcut = "^0.12.10"/mapbox-earcut = "*"/g' pyproject.toml
|
||||
sed -i 's/click = ">=7.2<=9.0"/click = ">=7.2,<=9.0"/g' pyproject.toml
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user