#!/bin/bash # Slackware build script for ciderpress-tools # Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. # TODO: # - Write man pages. Or at least, one man page, describing all the # tools. Not doing this now because I have absolutely no idea # what some of these tools do (packddd, sstasm?) and because # there's almost no documentation for the others. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ciderpress-tools VERSION=${VERSION:-4.1.1_d1} 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 # Slackware VERSION can't have hyphens, so: SRCNAM=ciderpress SRCVER="$( echo $VERSION | sed 's,_,-,g' )" # Undocumented (broken) option. # Someday, BZIP2=yes may work. Currently, you can compile with # bzip2 support, but it doesn't actually work (not a recognized # disk format). # In case you're wondering: libnufx supports bzip2, but the diskimg # library doesn't (and it's non-trivial to add support). BZIP2=${BZIP2:-no} if [ "$BZIP2" = "yes" ]; then CONFIG_ARG="--enable-bzip2" cat < $PKGDOC/README-linux.md 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