New package: f3-6.0
This commit is contained in:
parent
6784447fd9
commit
6b5342a425
2 changed files with 37 additions and 0 deletions
22
srcpkgs/f3/patches/fix-compile-flags.patch
Normal file
22
srcpkgs/f3/patches/fix-compile-flags.patch
Normal file
|
@ -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
|
15
srcpkgs/f3/template
Normal file
15
srcpkgs/f3/template
Normal file
|
@ -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 <brainwave@openmailbox.org>"
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue