diff options
author | JK Wood <joshuakwood@gmail.com> | 2010-04-11 10:41:56 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-15 10:37:51 +0200 |
commit | 40da3c7a015d11ec5db09306d862853f1fc54089 (patch) | |
tree | e49247ee4a5bd3bf38bd22fe15fc02758d3524c5 /development/likepython/likepython.SlackBuild | |
parent | 1cb5341eafde8c9e29517821bbd610dd3eceb141 (diff) |
development/likepython: Added (modern dialect support for Python)
Diffstat (limited to 'development/likepython/likepython.SlackBuild')
-rw-r--r-- | development/likepython/likepython.SlackBuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/development/likepython/likepython.SlackBuild b/development/likepython/likepython.SlackBuild new file mode 100644 index 0000000000000..3118187b9f2ef --- /dev/null +++ b/development/likepython/likepython.SlackBuild @@ -0,0 +1,58 @@ +#!/bin/sh +# Slackbuild for likepython +# Written by JK Wood <joshuakwood@gmail.com> +# +# SlackBuild is released under the Dog-on-Fire License: +# If use of the SlackBuild causes your dog to catch on fire, +# you agree to send me five dollars. Or a picture +# of the dog on fire. +# Otherwise, you're on your own. I've tested it +# on my own computer, and it hasn't broken anything. +# So if it does it on your computer, that falls in +# the realm of "Not my problem." +# +# Of course, if you'll send a bug report to the above +# email address, I may be able to see what you did +# wrong and prevent it from happening in the future. +# In which case, I may just send YOU five dollars. + +PRGNAM=likepython +VERSION=0.1 +ARCH=noarch +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +tar -xzvf $CWD/$PRGNAM\_$VERSION.tgz -C $PRGNAM-$VERSION|| exit 1 +cd $PRGNAM-$VERSION || exit 1 +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 {} \; + +mkdir -p $PKG/usr/bin +cp -a likepython $PKG/usr/bin +chmod 755 $PKG/usr/bin/likepython + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README hello_world.lp \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/LICENSE > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE +find $PKG/usr/doc -type f -exec chmod 644 {} \; + +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} |