From 3264cc0cc1fe2506056c59301de3e4525e9ffe76 Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 12 Sep 2018 14:59:43 +0200 Subject: [PATCH 1/3] antiword: bee init Antiword, a plain text converter for Word documents. Homepage: http://www.winfield.demon.nl/ --- antiword-0.37-0.bee | 83 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100755 antiword-0.37-0.bee diff --git a/antiword-0.37-0.bee b/antiword-0.37-0.bee new file mode 100755 index 000000000..2f6945ead --- /dev/null +++ b/antiword-0.37-0.bee @@ -0,0 +1,83 @@ +#!/usr/bin/env beesh + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="http://www.winfield.demon.nl/linux/antiword-${PKGVERSION}.tar.gz" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. + +# EXCLUDE+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +# sourcesubdir_append src + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[0] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From 2dcfa5c03c2ddb7878ea12f141957e26dac9bfdb Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 12 Sep 2018 15:00:31 +0200 Subject: [PATCH 2/3] antiword: beenullify antiword-0.37-0.bee --- antiword-0.37-0.bee => antiword.be0 | 2 ++ 1 file changed, 2 insertions(+) rename antiword-0.37-0.bee => antiword.be0 (98%) diff --git a/antiword-0.37-0.bee b/antiword.be0 similarity index 98% rename from antiword-0.37-0.bee rename to antiword.be0 index 2f6945ead..d93dbd049 100755 --- a/antiword-0.37-0.bee +++ b/antiword.be0 @@ -1,5 +1,7 @@ #!/usr/bin/env beesh +# BEE_VERSION antiword-0.37-0 + ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) From f1d29ae298ff465c9f0035ec83311b783b1972b9 Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 12 Sep 2018 16:06:25 +0200 Subject: [PATCH 3/3] antiword: Make makefile compatible for bee builds kantiword was a helper script for KDE desktop integration, no need for this. The install plan from the author was to use 'make global_install'. Not bad, but let bee's 'make install' succeed. --- antiword.be0 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/antiword.be0 b/antiword.be0 index d93dbd049..793e89e16 100755 --- a/antiword.be0 +++ b/antiword.be0 @@ -49,9 +49,12 @@ SRCURL[0]="http://www.winfield.demon.nl/linux/antiword-${PKGVERSION}.tar.gz" # bee_extract "${@}" #} -#mee_patch() { -# bee_patch "${@}" -#} +mee_patch() { + sed -i -e '/^\skantiword/ s/^\skantiword//' \ + -e '/^GLOBAL_INSTALL_DIR/ s,/local/,/,' \ + -e '/^install:/ s/install/home_install/' \ + -e '/^global_install:/ s/global_//' ${S}/Makefile.Linux +} #mee_configure() { # bee_configure