jdupes: ensure dedup functionality is enabled

CFLAGS set from the command line overrides
the logic to enable the dedup functionality
This commit is contained in:
J Farkas 2021-07-19 21:26:12 +00:00 committed by Leah Neukirchen
parent 54b0ac41f4
commit a92952dbd0
1 changed files with 9 additions and 0 deletions

View File

@ -12,6 +12,15 @@ changelog="https://raw.githubusercontent.com/jbruchon/jdupes/master/CHANGES"
distfiles="https://github.com/jbruchon/jdupes/archive/v${version}.tar.gz"
checksum=bb7c53cd463ab5e21da85948c4662a3b7ac9b038ae993cc14ccf793d2472e2e9
pre_build() {
sed -i 's/^CFLAGS +=/override CFLAGS +=/g' Makefile
sed -i 's/^LDFLAGS =/override LDFLAGS +=/g' Makefile
}
post_install() {
vlicense LICENSE
}
do_check() {
./jdupes -V|grep fsdedup
}