blob: d2930688683279dfbcea3dee11921a87d4dcf9fe (
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
26
27
28
29
30
31
|
# upstream git revision: 6a11428ac69b84060dc0b80bad752bd008e0b6d3
depends+=(archlinux32-keyring)
# fail if upstream changes makepkg.conf or pacman.conf
for ((i=0; i<${#sha256sums[@]}; i++)); do
if [ "${sha256sums[${i}]}" = '8c100b64450f5a19a16325dd05c143d49395bdeb96bd957f863cde4b95d3cb86' ]; then
sha256sums[${i}]='3c65dbd2518c9522d1a65d83b49dbebf5fac1a5488d73b62e10b423aee27dc8c'
fi
if [ "${sha256sums[${i}]}" = '3353f363088c73f1f86a890547c0f87c7473e5caf43bbbc768c2e9a7397f2aa2' ]; then
sha256sums[${i}]='428ceeb0d8b96ac5e4274ef098bde00916f9e1b62369eb3566eaf6f6b3ac3984'
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
source+=('replace-i686-by-pentium4-when-architecture-is-auto.patch')
sha256sums+=('e8d5f8979c4dfab49e7ac058846f2454b865c1da451e086c23e61034fd820c19')
prepare() {
cd "$pkgname-$pkgver"
patch -p1 -i ../replace-i686-by-pentium4-when-architecture-is-auto.patch
}
|