# upstream git revision: 557099dcb495b55b563735a21fdc393d0fc050fb depends+=(archlinux32-keyring) # fail if upstream changes makepkg.conf or pacman.conf for ((i=0; i<${#sha256sums[@]}; i++)); do if [ "${sha256sums[${i}]}" = 'f2791b51588104ec6dbaafa389451056f3c61fa6c19510dcce3a9a6cc19cba29' ]; then sha256sums[${i}]='d7e2516889c62cd3d0c1f2af5199fe0564c5ef35900d6b6551a8c9ce1c80f95a' fi if [ "${sha256sums[${i}]}" = '656c4d4cb8cb12adbf178fc8cb2fd25f8c285d6572bbdbb24d865d00e0d5a85a' ]; then sha256sums[${i}]='663cbfe0643ff78c1eeb38d59046707da49bde6ab8226fbc5844457a985cb5bc' fi done if [ ! "${CARCH}" = "i686" ]; then # patch architecture where needed eval "$( declare -f package | \ sed ' /install.*makepkg.conf/ a \ sed -i "s@i686@'"${CARCH}"'@g; /^CHOST/ s/pentium4-/i686-/" "$pkgdir/etc/makepkg.conf" ' )" fi # patch pacman for automatic architecture detection (applied in wildcard patch above) source+=('replace-i686-by-pentium4-when-architecture-is-auto.patch') sha256sums+=('6a7906bd28a57cbcff58d856ffefbbb9096a163aaff79913b4fac69d75d0028a') # not supported on i486 -fcf-protection # LTO currently no availavle on i486 if [ "${CARCH}" = "i486" ]; then eval "$( { declare -f package || \ printf 'package() {\n}\n' } \ | sed ' $i sed -i "s/-fcf-protection//g" "$pkgdir/etc/makepkg.conf" $i sed -i "s/LTOFLAGS.*/LTOFLAGS=\\\"-fno-lto\\\"/" "$pkgdir/etc/makepkg.conf" ' )" fi # broken Python/asciidoc eval "$( declare -f build | \ sed ' /meson/s/-Ddoc=enabled/-Ddoc=disabled/ ' )" # overload checksum of makepkg.conf (which has local adaptions) sha256sums[10]='ba8b4b35721d18cb98f1955a0e88bf8555aa348d00cb6325fcb80faf36b3047b' # gettext is linked against old ICU verison on i486, use ICU 72 stub if [ "${CARCH}" = "i486" ]; then makedepends+=(icu72) fi sha256sums[0]='SKIP'