# Template file for 'memtester' pkgname=memtester version=4.5.1 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 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 vsed -i -e "s|/usr/local|${DESTDIR}/usr|" \ -e "s|man/man8|share/man/man8|" Makefile }