diff options
Diffstat (limited to 'office/tapecalc')
-rw-r--r-- | office/tapecalc/README | 13 | ||||
-rw-r--r-- | office/tapecalc/slack-desc | 19 | ||||
-rw-r--r-- | office/tapecalc/tapecalc.SlackBuild | 95 | ||||
-rw-r--r-- | office/tapecalc/tapecalc.info | 10 |
4 files changed, 137 insertions, 0 deletions
diff --git a/office/tapecalc/README b/office/tapecalc/README new file mode 100644 index 000000000000..5b2ef1026341 --- /dev/null +++ b/office/tapecalc/README @@ -0,0 +1,13 @@ +tapecalc (calculator with curses 'register tape' UI) + +tapecalc (aka "add") is a full-screen tape editor that lets the user +edit a calculation. It is a curses application. + +It's more suitable for balancing a checkbook than a spreadsheet or any +of the various hand-calculator clones. + +Note: the colors of the user interface (white on blue) can't be +configured. However, tapecalc can be tricked into running in +monochrome, with a command like: + + $ TERM=vt100 tapecalc diff --git a/office/tapecalc/slack-desc b/office/tapecalc/slack-desc new file mode 100644 index 000000000000..6d17fcbfda35 --- /dev/null +++ b/office/tapecalc/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +tapecalc: tapecalc (calculator with curses 'register tape' UI) +tapecalc: +tapecalc: tapecalc (aka "add") is a full-screen tape editor that lets the user +tapecalc: edit a calculation. It is a curses application. +tapecalc: +tapecalc: It's more suitable for balancing a checkbook than a spreadsheet or any +tapecalc: of the various hand-calculator clones. +tapecalc: +tapecalc: +tapecalc: +tapecalc: diff --git a/office/tapecalc/tapecalc.SlackBuild b/office/tapecalc/tapecalc.SlackBuild new file mode 100644 index 000000000000..b0b8b699be0a --- /dev/null +++ b/office/tapecalc/tapecalc.SlackBuild @@ -0,0 +1,95 @@ +#!/bin/bash + +# Slackware build script for tapecalc + +# Written by B. Watson (urchlay@slackware.uk) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# Note: the original name for this is "add". This seems *awfully* +# generic (there's no /usr/bin/add in Slackware, but I can imagine +# some other SBo package using that name for something). When this +# got packaged for Debian, their maintainer renamed it to 'tapecalc'. +# I'll use their name. As a nice side effect, it's easier to search +# for under this name. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=tapecalc +SRCNAM=add +VERSION=${VERSION:-20230205} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tgz +cd $SRCNAM-$VERSION +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --disable-static \ + --program-transform-name='s/add/tapecalc/' \ + --datadir=/usr/share/$PRGNAM \ + --build=$ARCH-slackware-linux + +make +strip $SRCNAM +make install DESTDIR=$PKG +gzip $PKG/usr/man/man*/* + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a CHANGES COPYING README $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/office/tapecalc/tapecalc.info b/office/tapecalc/tapecalc.info new file mode 100644 index 000000000000..341348819be9 --- /dev/null +++ b/office/tapecalc/tapecalc.info @@ -0,0 +1,10 @@ +PRGNAM="tapecalc" +VERSION="20230205" +HOMEPAGE="https://invisible-island.net/add/add.html" +DOWNLOAD="https://invisible-island.net/archives/add/add-20230205.tgz" +MD5SUM="93e14f5e36a77bb3fb09099c61c134f9" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" |