aboutsummaryrefslogtreecommitdiffstats
path: root/main/valgrind/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/valgrind/APKBUILD')
-rw-r--r--main/valgrind/APKBUILD34
1 files changed, 10 insertions, 24 deletions
diff --git a/main/valgrind/APKBUILD b/main/valgrind/APKBUILD
index 8728790bdd..1c67b72240 100644
--- a/main/valgrind/APKBUILD
+++ b/main/valgrind/APKBUILD
@@ -4,9 +4,8 @@ pkgver=3.12.0
pkgrel=1
pkgdesc="A tool to help find memory-management problems in programs"
url="http://valgrind.org/"
-arch="x86 x86_64 armhf ppc64le s390x"
+arch="all !aarch64"
license="GPL2+"
-depends=""
# it seems like busybox sed works but the configure script requires GNU sed
makedepends="sed paxmark perl bash autoconf automake libtool"
# from README_PACKAGERS:
@@ -21,20 +20,16 @@ source="http://$pkgname.org/downloads/$pkgname-$pkgver.tar.bz2
musl-fixes.patch
arm.patch"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- aclocal && autoconf && automake --add-missing || return 1
+ default_prepare
+ cd "$builddir"
+ aclocal && autoconf && automake --add-missing
echo '#include <linux/a.out.h>' > include/a.out.h
}
build() {
- cd "$_builddir"
+ cd "$builddir"
# fails to build with ccache
export CC="gcc"
export CFLAGS="$CFLAGS -fno-stack-protector -no-pie"
@@ -46,14 +41,13 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
- --without-mpicc \
- || return 1
- make || return 1
+ --without-mpicc
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
# we have options=!strip above so we strip the /usr/bin/* manually
if [ -z "$DEBUG" ]; then
@@ -70,14 +64,6 @@ package() {
paxmark -m "$pkgdir"/usr/lib/valgrind/*-*-linux
}
-md5sums="6eb03c0c10ea917013a7622e483d61bb valgrind-3.12.0.tar.bz2
-c29b4572a070eb0d3a6a977be586c771 uclibc.patch
-6a5ab2ceaa4b5b907730fec90fdd4946 musl-fixes.patch
-751d4eff90f997b0131e63dede131cf2 arm.patch"
-sha256sums="67ca4395b2527247780f36148b084f5743a68ab0c850cb43e4a5b4b012cf76a1 valgrind-3.12.0.tar.bz2
-fab5afea5cb7abec79ff68088d97ccc188613c733b4dfc8ede029cb818ec397f uclibc.patch
-1a9e76609ebb2b9c178fe28d2b1f6e75cc0d82351b916e4dfdd7178a9554a3a1 musl-fixes.patch
-d23df431a8e60e074aa2838441a77799c3079af4a2a1bdc48d4848e3239628c4 arm.patch"
sha512sums="2c083f7c2e74dc58600397726d9d3af7a2cea40fe3d8733149886d1d77867e6c09996e5be1c58dd932f3662acf7363e04eeadbc0f9c8f0dac089e605024229be valgrind-3.12.0.tar.bz2
d59a10db9037e120df2ee94a103402ca95a79abee9d8be63e4e1bca29c82dca775cc402a79b854ec11a2160a4d2da202c237369418e221d1925267ea2613fd5d uclibc.patch
47735294a0641208c6bcbc51203019da18ec16d51316ca6437d0f9eba14d9acc09d82f65149b8b1d56aba90825397ef0c215e8036eccd0dce1287c58ee3ccda2 musl-fixes.patch