diff options
author | Andrzej Telszewski <atelszewski@gmail.com> | 2011-07-28 10:55:44 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-07-28 10:55:44 -0300 |
commit | aafa0914ac074a8d4e9e25f3059b0e9d521c82ac (patch) | |
tree | f0f674480a9793ce0353121b7171e37f9fa63b18 /libraries/Smarty/Smarty.SlackBuild | |
parent | 3dfc7de500436317b8eb9f2788a86ed4fec22476 (diff) | |
download | slackbuilds-aafa0914ac074a8d4e9e25f3059b0e9d521c82ac.tar.gz |
libraries/Smarty: (PHP template engine)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/Smarty/Smarty.SlackBuild')
-rw-r--r-- | libraries/Smarty/Smarty.SlackBuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/libraries/Smarty/Smarty.SlackBuild b/libraries/Smarty/Smarty.SlackBuild new file mode 100644 index 0000000000..d5f692ecef --- /dev/null +++ b/libraries/Smarty/Smarty.SlackBuild @@ -0,0 +1,59 @@ +#!/bin/sh + +# Slackware build script for Smarty + +# Written by Andrzej Telszewski <atelszewski@gmail.com> + + +PRGNAM=Smarty +VERSION=${VERSION:-3.0.8} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . + +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/Smarty +cp -a libs/* $PKG/usr/lib$LIBDIRSUFFIX/php/Smarty + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a demo change_log.txt COPYING.lib README SMARTY2_BC_NOTES \ + $PKG/usr/doc/$PRGNAM-$VERSION + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$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:-tgz} |