From fbfa1a3e633f2315bea3d12bde9222cf61417626 Mon Sep 17 00:00:00 2001 From: icp Date: Tue, 28 Mar 2023 20:12:04 +0530 Subject: [PATCH] memtester: update to 4.6.0. --- srcpkgs/memtester/template | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/srcpkgs/memtester/template b/srcpkgs/memtester/template index 0829d95c5d79..727b7b5f28ea 100644 --- a/srcpkgs/memtester/template +++ b/srcpkgs/memtester/template @@ -1,22 +1,23 @@ # Template file for 'memtester' pkgname=memtester -version=4.5.1 +version=4.6.0 revision=1 build_style=gnu-makefile short_desc="Userspace utility for testing the memory subsystem for faults" maintainer="Érico Nogueira " -license="GPL-2.0-or-later" -homepage="http://pyropus.ca/software/memtester" -changelog="http://pyropus.ca/software/memtester/CHANGELOG" -distfiles="http://pyropus.ca/software/memtester/old-versions/memtester-${version}.tar.gz" -checksum=1c5fc2382576c084b314cfd334d127a66c20bd63892cac9f445bc1d8b4ca5a47 +license="GPL-2.0-only" +homepage="https://pyropus.ca./software/memtester/" +changelog="https://pyropus.ca./software/memtester/CHANGELOG" +distfiles="https://deb.debian.org/debian/pool/main/m/memtester/memtester_${version}.orig.tar.gz" +checksum=c9fe4eb7e80c8cef5202f9065c4c0682f5616647c0455e916a5700f98e3dbb2e CFLAGS="-fcommon" post_patch() { - # first two won't change anything for native builds - vsed -i -e "s|^cc|$CC|" -e "s|-c|${CFLAGS} -c|" conf-cc - vsed -i -e "s|^cc|$CC|" -e "s|-s|${LDFLAGS} -s|" conf-ld + if [ -n "$CROSS_BUILD" ]; then + vsed -i -e "s|^cc|$CC|" -e "s|-c|${CFLAGS} -c|" conf-cc + vsed -i -e "s|^cc|$CC|" -e "s|-s|${LDFLAGS} -s|" conf-ld + fi vsed -i -e "s|/usr/local|${DESTDIR}/usr|" \ -e "s|man/man8|share/man/man8|" Makefile }