# cygport script for f3 NAME=f3 VERSION=8.0 RELEASE=1 SOURCE_DATE="2024-02-17 13:00:00 UTC" SUMMARY="Test real flash memory capacity" DESCRIPTION="f3 is a simple tool that tests flash cards capacity and performance to see if they live up to claimed specifications. It fills the device with pseudorandom data and then checks if it returns the same on reading. F3 stands for Fight Flash Fraud, or Fight Fake Flash." LICENSE="GPL-3.0-only" # or GPL-3.0-or-later ? CATEGORY="Utils" REQUIRES="" # libargp BUILD_REQUIRES="binutils gcc-core gzip libargp-devel" # make HOMEPAGE="https://fight-flash-fraud.readthedocs.io/" SRC_URI="https://codeload.github.com/AltraMayor/f3/tar.gz/refs/tags/v${PV}#/${P}.tar.gz" export SOURCE_DATE_EPOCH=$(date -d "$SOURCE_DATE" +%s) src_compile() { cd ${B} lndirs cygmake PREFIX=/usr \ LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-Wl,--stack,4000000 -largp" } src_install() { cd ${B} cyginstall PREFIX=/usr cd ${S} dodoc changelog doc/{contribute,history,usage}.rst gzip -9 -n ${D}/usr/share/doc/${PN}/{changelog,*.rst} docinto examples dodoc f3write.h2w log-f3wr }