diff options
author | vvoody <ydoovv@gmail.com> | 2010-06-13 03:08:30 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-13 14:52:38 -0500 |
commit | 92043e82ae1604a21b8d818e14df25b382a28655 (patch) | |
tree | e995c396676bb6c5b53cdd44c8df25230caf1e43 /development/pyenchant/pyenchant.SlackBuild | |
parent | d583144d25d599cf4d6aa3e5fad6e0951e097e96 (diff) |
development/pyenchant: Added (spellcheck library in python)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/pyenchant/pyenchant.SlackBuild')
-rw-r--r-- | development/pyenchant/pyenchant.SlackBuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/development/pyenchant/pyenchant.SlackBuild b/development/pyenchant/pyenchant.SlackBuild new file mode 100644 index 000000000000..ea142f2d9e97 --- /dev/null +++ b/development/pyenchant/pyenchant.SlackBuild @@ -0,0 +1,52 @@ +#!/bin/sh + +# Slackware build script for pyenchant + +# Written by vvoody <ydoovv@gmail.com> + +PRGNAM=pyenchant +VERSION=${VERSION:-1.6.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) 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 --prefix=/usr --root=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE.txt README.txt $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} |