summaryrefslogtreecommitdiff
path: root/extra/valgrind/PKGBUILD
blob: 789c62d1fb8c8d21512aae5a0f75768928cb031d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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 dependencies and targets
makedepends=(
  $(
    printf '%s\n' "${makedepends[@]}" | \
      sed '/^lib32-\(gcc-libs\|glibc\)\($\|[<>=]\)/d'
  )
)
provides=("${provides[@]/$pkgname-multilib}")
replaces=("${replaces[@]/$pkgname-multilib}")