slackbuilds/doc/The-Scheme-Programming-Language/SlackBuild

57 lines
1,013 B
Text
Raw Normal View History

2011-02-26 16:18:27 +07:00
#!/bin/sh
CWD=$(pwd)
PRGNAM=$(basename $CWD)
2011-03-06 15:38:48 +07:00
VERSION=$(date +"%Y.%m.%d_%H.%M")
2011-02-26 16:18:27 +07:00
BUILD=1
ARCH=noarch
2020-06-25 11:23:11 +02:00
TAG=gwh
2011-02-26 16:18:27 +07:00
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
2011-07-22 08:41:46 +02:00
REPOSITORIES=/home/installs/SlackBuilds/repositories/
2011-02-26 16:18:27 +07:00
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 <<EOF > 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 *
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
2011-02-26 16:18:27 +07:00
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz