diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-17 13:40:14 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-19 12:09:25 +0700 |
commit | 6f1ef492d388626295a307e1ba3eed018c766789 (patch) | |
tree | 56d2de81a091e548ecedf1be4d31d60cdb7d215f | |
parent | be3d419c8115fb45ca32407026ddb8e7fb06880f (diff) |
office/full-pack: Allow building without gbgoffice or kbgoffice.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | office/full-pack/README | 10 | ||||
-rw-r--r-- | office/full-pack/full-pack.SlackBuild | 20 |
2 files changed, 19 insertions, 11 deletions
diff --git a/office/full-pack/README b/office/full-pack/README index cf984a9b958e..cea1b4177348 100644 --- a/office/full-pack/README +++ b/office/full-pack/README @@ -1,7 +1,7 @@ -full-pack is a set of dictionaries for kbg/gbgoffice. It includes a -bidirectional English-Bulgarian dictionary, a dictionary of computer -terms, a polytechnical dictionary and a dictionary of the Bulgarian -North-West dialect. +full-pack is a set of dictionaries for kbg/gbgoffice. It includes a +bidirectional English-Bulgarian dictionary, a dictionary of computer +terms, a polytechnical dictionary and a dictionary of the Bulgarian +North-West dialect. The dictionary engine is provided by either kbgoffice or gbgoffice, -so this package depends either from one or the other. +so this package is only useful if one or both are installed. diff --git a/office/full-pack/full-pack.SlackBuild b/office/full-pack/full-pack.SlackBuild index 9086132bb9b6..b83e1bd121c6 100644 --- a/office/full-pack/full-pack.SlackBuild +++ b/office/full-pack/full-pack.SlackBuild @@ -11,6 +11,11 @@ # Modified by Robby Workman <rworkman@slackbuilds.org> 20101209 # * My changes are all good, so flames should still go to Martin... ;-) +# 20220217 bkw: Modified by SlackBuilds.org: get rid of the Makefile +# check for an installed copy of gbgoffice or kbgoffice. Allows the +# package to be built standalone. Having them installed doesn't change +# the contents of this package one whit, anyway. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=full-pack @@ -21,9 +26,6 @@ PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -46,11 +48,17 @@ cd $PRGNAM chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ + +# 20220217 bkw: get rid of the check for installed gbgoffice or +# kbgoffice. The data dirs are the same for both (DATA_DIR in the +# make command), so it doesn't matter which one (or if neither one) +# is installed, as far as creating this package is concerned. +sed -i '/^install:/s, .*$,,' Makefile -make DATA_DIR=$PKG/usr/share/bgoffice install || exit 1 +make DATA_DIR=$PKG/usr/share/bgoffice install mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |