# Template file for 'python3-sabyenc3' pkgname=python3-sabyenc3 version=5.4.4 revision=2 build_style=python3-module hostmakedepends="python3-setuptools" makedepends="python3-devel" depends="python3" short_desc="SABYEnc - yEnc Decoding for Python 3" maintainer="Orphaned " license="LGPL-3.0-or-later" homepage="https://github.com/sabnzbd/sabyenc/" distfiles="$PYPI_SITE/s/sabyenc3/sabyenc3-$version.tar.gz" checksum=f3d65f2a70bcb13ef1beae0ff6bb3b69adae18497035f8cd4ffe4e5af1aa2f41 pre_configure() { vsed -i -e ' /-O3/d /IS_X86 =/s/=.*/= False/ /IS_MACOS =/s/=.*/= False/ /IS_ARM =/s/=.*/= False/ ' setup.py case "$XBPS_TARGET_MACHINE" in x86_64* | i686*) vsed -i -e '/IS_X86 =/s/=.*/= True/' setup.py ;; aarch64* | arm*) vsed -i -e '/IS_ARM =/s/=.*/= True/' setup.py ;; esac }