slackbuilds/web/better-web-readability-project/better-web-readability-project.SlackBuild
Gwenhael Le Moine 2d3c96f8e7 replace TMP by OUTPUT
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2011-02-17 11:54:04 +07:00

52 lines
1.1 KiB
Bash
Executable file

#!/bin/sh
CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=$(date +%Y.%m.%d_%H.%M)
BUILD=1
ARCH=$(uname -m)
REPOSITORIES=/home/cycojesus/projets/packages/repositories
TAG=cyco
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
PREFIX=/usr
# cleaning
rm -fr $PKG
[ ! -e $CWD/Better-Web-Readability-Project-CSS-Library.zip ] && ( cd $CWD ; \
wget -c http://better-web-readability-project.googlecode.com/files/Better-Web-Readability-Project-CSS-Library.zip ; )
mkdir -p $PKG/srv/www/htdocs
( cd $PKG/srv/www/htdocs ;
unzip $CWD/Better-Web-Readability-Project-CSS-Library.zip
)
( cd $PKG
mkdir -p install
cat <<EOF > install/slack-desc
$PRGNAM: $PRGNAM (CSS library)
$PRGNAM:
$PRGNAM: The main purpose of this project is to contribute to better reading experience
$PRGNAM: on the screen by using CSS typography library.
$PRGNAM: All about this solution:
$PRGNAM: http://www.vcarrer.com/2009/05/how-we-read-on-web-and-how-can-we.html
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://code.google.com/p/better-web-readability-project/
$PRGNAM:
EOF
chown -R root:root *
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
)