summaryrefslogtreecommitdiffstats
path: root/office/tapecalc
diff options
context:
space:
mode:
Diffstat (limited to 'office/tapecalc')
-rw-r--r--office/tapecalc/README13
-rw-r--r--office/tapecalc/slack-desc19
-rw-r--r--office/tapecalc/tapecalc.SlackBuild97
-rw-r--r--office/tapecalc/tapecalc.info10
4 files changed, 139 insertions, 0 deletions
diff --git a/office/tapecalc/README b/office/tapecalc/README
new file mode 100644
index 0000000000..5b2ef10263
--- /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 0000000000..6d17fcbfda
--- /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 0000000000..94b3b87bab
--- /dev/null
+++ b/office/tapecalc/tapecalc.SlackBuild
@@ -0,0 +1,97 @@
+#!/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.
+
+# 20240208 bkw: update for v20240110.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=tapecalc
+SRCNAM=add
+VERSION=${VERSION:-20240110}
+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 0000000000..96c4496a8a
--- /dev/null
+++ b/office/tapecalc/tapecalc.info
@@ -0,0 +1,10 @@
+PRGNAM="tapecalc"
+VERSION="20240110"
+HOMEPAGE="https://invisible-island.net/add/add.html"
+DOWNLOAD="https://invisible-island.net/archives/add/add-20240110.tgz"
+MD5SUM="81a284a0e728b13738076ad5febb8f2a"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"