From 27d457f7de2b4e69589eff13dca06146e2c67829 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 26 Feb 2011 16:18:27 +0700 Subject: [PATCH] added --- ...The-Scheme-Programming-Language.SlackBuild | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 doc/The-Scheme-Programming-Language/The-Scheme-Programming-Language.SlackBuild diff --git a/doc/The-Scheme-Programming-Language/The-Scheme-Programming-Language.SlackBuild b/doc/The-Scheme-Programming-Language/The-Scheme-Programming-Language.SlackBuild new file mode 100755 index 00000000..3ffcd071 --- /dev/null +++ b/doc/The-Scheme-Programming-Language/The-Scheme-Programming-Language.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://scheme.com/tspl4/ + ) +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 («The Scheme Programming Language» book) +$PRGNAM: +$PRGNAM: Fourth Edition +$PRGNAM: +$PRGNAM: R. Kent Dybvig +$PRGNAM: +$PRGNAM: Illustrations by Jean-Pierre Hébert +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://scheme.com/tspl4/ +EOF + +chown -R root:root * + +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz