From fa3474eaebc915b5e4497b3c3fde1b06321b4047 Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 6 Nov 2019 14:36:23 +0100 Subject: [PATCH] bsdiff: Fix/circumvent makefile The Makefile would be best rewritten from scratch. (Maybe in the next release) --- bsdiff.be0 | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/bsdiff.be0 b/bsdiff.be0 index bceb00489..5f2f1cb7b 100755 --- a/bsdiff.be0 +++ b/bsdiff.be0 @@ -43,9 +43,9 @@ SRCURL[0]="https://www.daemonology.net/bsdiff/bsdiff-${PKGVERSION}.tar.gz" # bee_extract "${@}" #} -#mee_patch() { -# bee_patch "${@}" -#} +mee_patch() { + sed -e '/^\.ifndef/ s/^\.//' -e '/^\.endif/ s/^\.//' -i ${S}/Makefile +} #mee_configure() { # bee_configure @@ -55,9 +55,16 @@ SRCURL[0]="https://www.daemonology.net/bsdiff/bsdiff-${PKGVERSION}.tar.gz" # bee_build #} -#mee_install() { -# bee_install -#} +mee_install() { + mkdir -vp ${D}/usr/bin + cp -v ${B}/bsdiff ${D}/usr/bin + cp -v ${B}/bspatch ${D}/usr/bin + chmod -v 755 ${D}/usr/bin/* + mkdir -vp ${D}/usr/share/man/man1 + cp -v ${B}/bsdiff.1 ${D}/usr/share/man/man1 + cp -v ${B}/bspatch.1 ${D}/usr/share/man/man1 + chmod -v 644 ${D}/usr/share/man/man1/* +} ## by default this may be 'make install DESTDIR="${D}"' ###############################################################################