# upstream git revision: 1a52f2e1d641587a1514c99b96d839368076288d depends+=(archlinux32-keyring) # fail if upstream changes makepkg.conf or pacman.conf for ((i=0; i<${#sha256sums[@]}; i++)); do # pacman.conf if [ "${sha256sums[${i}]}" = '0e84952e4b8eacbb38c018608d152ddd6f98e205c4c6c7d3cdca854d4b7d4179' ]; then sha256sums[${i}]='3e482ca4e98386679cec02b51e32c6a13caf3dee365a850567547f616a69408f' fi # makepkg.conf if [ "${sha256sums[${i}]}" = 'd99c1f9608362fff9ab3a2ca0a3096a317927b42a6725bc86599da6849c9c67c' ]; then sha256sums[${i}]='82e963060a02c9a04cf5296bb4c5e732d3c3d0666d221ddaf2b3367989b9d894' 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 available 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 # If this still applies, it only does for i486: if [ "${CARCH}" = "i486" ]; then # broken Python/asciidoc eval "$( declare -f build | \ sed ' /meson/s/-Ddoc=enabled/-Ddoc=disabled/ ' )" fi # gettext is linked against old ICU verison on i486, use ICU 72 stub if [ "${CARCH}" = "i486" ]; then makedepends+=(icu72) fi sha256sums[0]='SKIP'