void-packages/srcpkgs/memtester/template
2020-10-03 09:28:55 -03:00

21 lines
760 B
Bash

# Template file for 'memtester'
pkgname=memtester
version=4.5.0
revision=2
build_style=gnu-makefile
short_desc="Userspace utility for testing the memory subsystem for faults"
maintainer="Érico Nogueira <ericonr@disroot.org>"
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=8ed52b0d06d4aeb61954994146e2a5b2d20448a8f3ce3ee995120e6dbde2ae37
CFLAGS="-fcommon"
pre_build() {
sed -i -e "s|^cc|$CC|" -e "s|-c|${CFLAGS} -c|" conf-cc
sed -i -e "s|^cc|$CC|" -e "s|-s|${LDFLAGS} -s|" conf-ld
sed -i -e "s|/usr/local|${DESTDIR}/usr|" \
-e "s|man/man8|share/man/man8|" Makefile
}