diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-04 23:42:23 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-04 23:42:23 -0400 |
commit | 5a47dea4e07578c0ef8b272ab7dfd391cdb4d674 (patch) | |
tree | c8772a8cab9bc757f6c8b36e71719187fc320aac /business | |
parent | cc366c3098ec02b58941ed20c4c84a0bb59eb60d (diff) |
business/beancount: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'business')
-rw-r--r-- | business/beancount/beancount.SlackBuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/business/beancount/beancount.SlackBuild b/business/beancount/beancount.SlackBuild index 87e4265451ff..d434d288b3f3 100644 --- a/business/beancount/beancount.SlackBuild +++ b/business/beancount/beancount.SlackBuild @@ -5,25 +5,26 @@ # Written by Lionel Young <redtricycle@gmail.com> # Based on http://slackbuilds.org/template.SlackBuild +# 20220301 bkw: Modified by SlackBuilds.org, BUILD=2: +# - remove 0-byte placeholder in doc dir. +# - i486 => i586. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=beancount VERSION=${VERSION:-1.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) export ARCH=i486 ;; + i?86) export ARCH=i586 ;; arm*) export ARCH=arm ;; *) export ARCH=$( uname -m ) ;; esac fi -# 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 @@ -33,8 +34,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -60,9 +61,9 @@ cd $PRGNAM-$VERSION 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 {} \+ # Ensure header images and style sheet is included by bean-web patch -p1 --verbose < $CWD/beancount_web_fix.diff @@ -81,6 +82,9 @@ cp -aR \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# 20220404 bkw: 0-byte placeholder +rm -f $PKG/usr/doc/$PRGNAM-$VERSION/examples/.keep + # Install mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |