summaryrefslogtreecommitdiff
path: root/extra/valgrind/PKGBUILD
blob: 82e85edceb9ab25c4312dc1d2618e9530dbdbf75 (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
# Patch: https://bugsfiles.kde.org/attachment.cgi?id=107639
# See: https://bugs.kde.org/show_bug.cgi?id=386115
# and https://bugs.kde.org/show_bug.cgi?id=384230

source+=('valgrind-3.13.0-ignore-redundant-addr16-prefix-in-rel-call.patch')
md5sums+=('3df4e4b3724de72cc68b13c1aabdfd2e')
sha512sums+=('fedf7b68e2246819a37c3d6126384e13103c4e22a68b4339ed41c7a1528a09f15fc32ea3cab7e4f87d7514b855582f68bfb8b864aaa0821759a3a6b12b5ad9e4')

prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i "$srcdir/valgrind-3.13.0-ignore-redundant-addr16-prefix-in-rel-call.patch"
}

# remove multilib targets
provides=("${provides[@]/$pkgname-multilib}")
replaces=("${replaces[@]/$pkgname-multilib}")

unset checkdepends
unset check

# 486-specific
if [ "${CARCH}" = "i486" ]; then
  # disable OpenMPI support
  makedepends=(${makedepends[@]//openmpi/})
fi