summaryrefslogtreecommitdiff
path: root/core/pacman/PKGBUILD
blob: 86372fc66cd6618c1fd01a93c47f7eb63a2f0396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# upstream git revision: e06c0338abc7919fe18a2070704bcd498344b29e

depends+=(archlinux32-keyring)

# fail if upstream changes makepkg.conf or pacman.conf
for ((i=0; i<${#sha256sums[@]}; i++)); do
  if [ "${sha256sums[${i}]}" = 'b82e9c1073292766c2f49b5c771dddf37383f1151117ef9cd5e0c11047b4f3eb' ]; then
    sha256sums[${i}]='d75bbbe42d290c4f22a95e6ac86d4723dc6d0c08228d14c3dcbae9dc5d2514e5'
  fi
  if [ "${sha256sums[${i}]}" = '650ddad24cad6afc4aecb4829cb8f06b9acb70c10a44f756fe8bd279949b518e' ]; then
    sha256sums[${i}]='d1c3e5f9b7259e401ab121aff335531452d23dc67d9e6c2f464771d25f11058a'
  fi
done

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # patch architecture where needed
  eval "$(
    declare -f package | \
      sed '
        /install.*makepkg.conf/ a \
          sed -i "s@i686@i486@g" "$pkgdir/etc/makepkg.conf"
      '
  )"
fi