Browse files

genshi: cleaned up

  • Loading branch information...
1 parent 6f42514 commit 867df54db23388902b559feb0b967527912071dc @jgeboski committed Oct 7, 2012
Showing with 3 additions and 13 deletions.
  1. +3 −13 libraries/genshi/genshi.SlackBuild
View
16 libraries/genshi/genshi.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
-# Slackware build script for
-
+# Slackware build script for Genshi
# Written by Eugene Suter <easuter at gmail.com>
PRGNAM="genshi"
@@ -10,12 +9,10 @@ VERSION=${VERSION:-0.6}
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
@@ -39,7 +36,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -54,21 +51,14 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Using the "install" option of the python setup script will build and
-# install the files directly into $PKG
python setup.py install --root=$PKG
-# Documentation
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv doc/* $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/* COPYING ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Copy the slack-desc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-# Make the package
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-

0 comments on commit 867df54

Please sign in to comment.