summaryrefslogtreecommitdiff
path: root/development/django/django.SlackBuild
diff options
context:
space:
mode:
authorCarlos Corbacho <carlos@strangeworlds.co.uk>2010-09-11 14:58:14 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-09-12 23:08:52 -0500
commitbffb673c33d90e6974444c898c41d0396c16ee77 (patch)
treee8f1ee165da79a37404703bacbc8e88d12f271c4 /development/django/django.SlackBuild
parent0afb31b8bffd19dfebdaa0f7e4a90fdd34b9b3f7 (diff)
downloadslackbuilds-bffb673c33d90e6974444c898c41d0396c16ee77.tar.gz
development/django: Updated for version 1.2.3.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/django/django.SlackBuild')
-rw-r--r--development/django/django.SlackBuild51
1 files changed, 13 insertions, 38 deletions
diff --git a/development/django/django.SlackBuild b/development/django/django.SlackBuild
index f326eb0f97..83381eb84d 100644
--- a/development/django/django.SlackBuild
+++ b/development/django/django.SlackBuild
@@ -22,12 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PKGNAM=django
-SRCNAM=Django
-VERSION=${VERSION:-1.2.1}
+PRGNAM=django
+VERSION=${VERSION:-1.2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=Django
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -38,14 +39,16 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PKGNAM
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PKGNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz || exit 1
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find . \
@@ -54,41 +57,13 @@ find . \
\( -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"
+python setup.py install --prefix=/usr --root="$PKG"
-mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
-cp -a AUTHORS LICENSE README \
- $PKG/usr/doc/$PKGNAM-$VERSION
-chmod 0644 $PKG/usr/doc/$PKGNAM-$VERSION/*
-
-# Compress and link manpages, if any:
-if [ -d $PKG/usr/man ]; then
- ( cd $PKG/usr/man
- for manpagedir in $(find . -type d -name "man*") ; do
- ( cd $manpagedir
- for eachpage in $( find . -type l -maxdepth 1) ; do
- ln -s $( readlink $eachpage ).gz $eachpage.gz
- rm $eachpage
- done
- gzip -9 *.?
- )
- done
- )
-fi
-
-# Compress info files, if any:
-if [ -d $PKG/usr/info ]; then
- ( cd $PKG/usr/info
- rm -f dir
- gzip -9 *
- )
-fi
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}