diff options
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} |