Closes: https://bugs.gentoo.org/710810
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
S=${WORKDIR}/${P}/${PN}
src_prepare() {
- sed -i -e "s:\$(CFLAGS)::" Makefile || die
- sed -i -e "s:-g::g" Makefile || die
- sed -i -e "s:-O2:\$(CFLAGS) ${CFLAGS}:" Makefile || die
- sed -i -e "s:-o wmtimer:\$(LDFLAGS) -o wmtimer:" Makefile || die
+ sed -i -e "s|\$(CFLAGS)||" Makefile || die
+ sed -i -e "s|-g||g" Makefile || die
+ sed -i -e "s|-O2|\$(CFLAGS) ${CFLAGS}|" Makefile || die
+ sed -i -e "s|-o wmtimer|\$(LDFLAGS) -o wmtimer|" Makefile || die
cd "${WORKDIR}"/${P} || die
eapply "${FILESDIR}"/${P}-counter-fix.patch