From af51fbf333b1eeb7a4351104d9991f1465719193 Mon Sep 17 00:00:00 2001 From: Gwenhael Le moine Date: Mon, 21 Feb 2011 14:32:30 +0700 Subject: [PATCH 1/2] added --- doc/thinking-forth/thinking-forth.SlackBuild | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 doc/thinking-forth/thinking-forth.SlackBuild diff --git a/doc/thinking-forth/thinking-forth.SlackBuild b/doc/thinking-forth/thinking-forth.SlackBuild new file mode 100755 index 00000000..32736e94 --- /dev/null +++ b/doc/thinking-forth/thinking-forth.SlackBuild @@ -0,0 +1,48 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=1.0 +BUILD=1 + +ARCH=noarch + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +[ -e $CWD/thinking-forth-color.pdf ] && mv $CWD/thinking-forth-color.pdf{,.orig} +wget -c "http://prdownloads.sourceforge.net/thinking-forth/thinking-forth-color.pdf?download" -O $CWD/thinking-forth-color.pdf +[ -e $CWD/thinking-forth-$VERSION.tar.bz2 ] && mv $CWD/thinking-forth-$VERSION.tar.bz2{,.orig} +wget -c "http://prdownloads.sourceforge.net/thinking-forth/thinking-forth-$VERSION.tar.bz2?download" -O $CWD/thinking-forth-$VERSION.tar.bz2 + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -R $CWD/thinking-forth-{color.pdf,$VERSION.tar.bz2} $PKG$PREFIX/doc/$PRGNAM + +cd $PKG +mkdir -p install +cat < install/slack-desc +$PRGNAM: $PRGNAM («Thinking Forth» book) +$PRGNAM: +$PRGNAM: Thinking Forth is a book about the philosophy of problem solving and programming +$PRGNAM: style, applied to the unique programming language Forth. Published first in 1984, +$PRGNAM: it could be among the timeless classics of computer books, such as Fred Brooks' +$PRGNAM: The Mythical Man-Month and Donald Knuth's The Art of Computer Programming. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://thinking-forth.sourceforge.net +$PRGNAM: +EOF + +chown -R root:root * + +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz From 780ad8ad07d84ed8653f64a72ddd3dfcec6f7684 Mon Sep 17 00:00:00 2001 From: Gwenhael Le moine Date: Mon, 21 Feb 2011 15:02:40 +0700 Subject: [PATCH 2/2] added --- doc/starting-forth/starting-forth.SlackBuild | 55 ++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 doc/starting-forth/starting-forth.SlackBuild diff --git a/doc/starting-forth/starting-forth.SlackBuild b/doc/starting-forth/starting-forth.SlackBuild new file mode 100755 index 00000000..0f7afbcd --- /dev/null +++ b/doc/starting-forth/starting-forth.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=$(date +"%Y.%m.%d_%M") +BUILD=1 + +ARCH=noarch + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORIES=/home/cycojesus/projets/packages/repositories/ +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +if [ ! -e $REPOSITORIES/$PRGNAM ]; then + mkdir -p $REPOSITORIES/$PRGNAM + ( cd $REPOSITORIES/$PRGNAM + httrack http://home.iae.nl/users/mhx/sf.html + ) +else + ( cd $REPOSITORIES/$PRGNAM + httrack --update + ) +fi + +mkdir -p $PKG$PREFIX/doc/ +cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM + +cd $PKG +mkdir -p install +cat < install/slack-desc +$PRGNAM: $PRGNAM («Starting Forth» book) +$PRGNAM: +$PRGNAM: Starting Forth, First Edition is from 1981. These web pages were designed in +$PRGNAM: 2003, when it became apparent that SF would never be re-issued by the +$PRGNAM: copyright holder. A small supply of about 500 books was all that was left. +$PRGNAM: When you can get hold of the original, do so. +$PRGNAM: In this transcript Forth code has been ANSified. The samples should run on, +$PRGNAM: at least, iForth and SwiftForth. Where necessary, statements that were valid +$PRGNAM: in 1981 have been exchanged with statements more appropriate for 2003 (when +$PRGNAM: this tribute was written). +$PRGNAM: http://home.iae.nl/users/mhx/sf.html +EOF + +chown -R root:root * + +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz