--- trunk/extras/bcache-tools/bcache-tools-1.0.8-r1.smage2 2019/03/22 23:26:50 32071 +++ trunk/extras/bcache-tools/bcache-tools-1.0.8-r1.smage2 2019/03/22 23:28:17 32072 @@ -24,6 +24,15 @@ UP2SEPERATOR="v" UP2DATE="updatecmd https://github.com/g2p/bcache-tools/releases | highesttarball gz" +src_prepare() +{ + munpack ${SRCFILE} || die + cd ${SRCDIR} + + # fix CFLAGS and fixed compile issues + sed -i -e '/^CFLAGS/s:-O2::' -e '/^CFLAGS/s:-g:-std=gnu89:' Makefile || die +} + src_compile() { cd ${SRCDIR}