# https://dev.gnupg.org/T4191 # patch from Debian, see: https://salsa.debian.org/debian/gpgme/blob/debian/master/debian/patches/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch source+=(0004-Avoid-Y2038-problem-on-32-bit-architectures.patch) sha256sums+=('0c788590e0bb7cc9da04457f94360ceef9cb9fc0525e6bfbf9fbb8d72801ae8f') eval "$( { declare -f prepare || \ printf 'prepare() {\n}\n' } \ | sed ' $i cd "${srcdir}/${pkgbase}-${pkgver}" \ patch -Np1 -i "$srcdir/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch" ' )" # touches for pyc cache in build are 64-bittish eval "$( declare -f build | \ sed ' s/lib.linux-x86_64/lib.linux-i686/g ' )" # qt part lost it's settings for 64-bit file offset support? eval "$( declare -f build | \ sed ' s/make/make CXXFLAGS='-D_FILE_OFFSET_BITS=64' / ' declare -f package_qgpgme | \ sed ' s/make/make CXXFLAGS='-D_FILE_OFFSET_BITS=64' / ' )" if [[ $CARCH == i486 ]]; then # ignore gui (for now, needs Qt6, which needs atomics) makedepends=(${makedepends[@]//qt6-base/}) eval "$( declare -f package_qgpgme-qt6 | \ sed ' s/--sphinx-man// s/--sphinx-html// ' declare -f package_gpgme | \ sed ' /libqgpgmeqt6/d ' declare -f package_qgpgme-qt6 | \ sed ' 3 i if false; then $ i fi ' )" fi if [[ $CARCH == pentium4 ]]; then eval "$(declare -f build | sed 's@./configure@CC="gcc -msse2" CXX="g++ -msse2" ./configure@')" fi