24 lines
790 B
Bash
24 lines
790 B
Bash
# Template file for 'memtester'
|
|
pkgname=memtester
|
|
version=4.6.0
|
|
revision=1
|
|
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-only"
|
|
homepage="https://pyropus.ca./software/memtester/"
|
|
changelog="https://pyropus.ca./software/memtester/CHANGELOG"
|
|
distfiles="${DEBIAN_SITE}/main/m/memtester/memtester_${version}.orig.tar.gz"
|
|
checksum=c9fe4eb7e80c8cef5202f9065c4c0682f5616647c0455e916a5700f98e3dbb2e
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
post_patch() {
|
|
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
|
|
}
|