diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2011-10-19 07:48:31 -0200 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-19 07:48:31 -0200 |
commit | c572b42ea8a53032de765636c42fa73503a7ecd1 (patch) | |
tree | b1a816b6d712d1327c67f7d2df95c8bbb714ac0d /python/Mako/Mako.SlackBuild | |
parent | 7ee07de82c3a51d3d659c45a756d710db3022706 (diff) | |
download | slackbuilds-c572b42ea8a53032de765636c42fa73503a7ecd1.tar.gz |
python/Mako: Updated for version 0.5.0 (+new category)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'python/Mako/Mako.SlackBuild')
-rw-r--r-- | python/Mako/Mako.SlackBuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/python/Mako/Mako.SlackBuild b/python/Mako/Mako.SlackBuild new file mode 100644 index 0000000000..aa0ea51d21 --- /dev/null +++ b/python/Mako/Mako.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh + +# Slackware build script for Mako + +# Written by Larry Hajali <larryhaja[at]gmail[dot]com> + +PRGNAM=Mako +VERSION=0.5.0 +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} + +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 . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +python setup.py install --root=$PKG --no-compile + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGES LICENSE README doc/* \ + $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} |