diff --git a/srcpkgs/f3/patches/fix-compile-flags.patch b/srcpkgs/f3/patches/fix-compile-flags.patch new file mode 100644 index 0000000000..964f7e6ebf --- /dev/null +++ b/srcpkgs/f3/patches/fix-compile-flags.patch @@ -0,0 +1,22 @@ +--- Makefile.orig ++++ Makefile +@@ -1,5 +1,5 @@ + CC ?= gcc +-CFLAGS += -std=c99 -Wall -Wextra -pedantic -MMD -ggdb ++override CFLAGS += -std=c99 -Wall -Wextra -pedantic -MMD -ggdb + + TARGETS = f3write f3read + EXPERIMENTAL_TARGETS = f3probe f3brew f3fix +@@ -23,10 +23,10 @@ + $(INSTALL) -oroot -groot -m755 $(EXPERIMENTAL_TARGETS) $(PREFIX)/bin + + f3write: utils.o f3write.o +- $(CC) -o $@ $^ -lm ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lm + + f3read: utils.o f3read.o +- $(CC) -o $@ $^ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + + f3probe: libutils.o libdevs.o libprobe.o f3probe.o + $(CC) -o $@ $^ -lm -ludev diff --git a/srcpkgs/f3/template b/srcpkgs/f3/template new file mode 100644 index 0000000000..b77c49dc26 --- /dev/null +++ b/srcpkgs/f3/template @@ -0,0 +1,15 @@ +# Template file for 'f3' +pkgname=f3 +version=6.0 +revision=1 +build_style=gnu-makefile +short_desc="Test real flash memory capacity" +maintainer="bra1nwave " +license="GPL-3" +homepage="https://github.com/AltraMayor/f3" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=d72addb15809bc6229a08ac57e2b87b34eac80346384560ba1f16dae03fbebd5 + +do_install() { + make PREFIX="${DESTDIR}/usr" install +}