|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2015-2017 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2015-2017,2020 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -25,13 +25,11 @@
|
|
|
|
|
# Latest Django sourcecode is available at: |
|
|
|
|
# <http://www.djangoproject.com/>. |
|
|
|
|
# |
|
|
|
|
# Optional: d/sphinx |
|
|
|
|
# |
|
|
|
|
# Note: d/sphinx is only needed to build the HTML documentation. |
|
|
|
|
# Optional: l/pytz |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-Django} |
|
|
|
|
VERSION=${VERSION:-1.8.19} |
|
|
|
|
VERSION=${VERSION:-1.11.27} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-https://www.djangoproject.com/download/$VERSION/tarball/} |
|
|
|
|
|
|
|
|
@ -75,18 +73,10 @@ tar xf $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME |
|
|
|
|
python2 setup.py build |
|
|
|
|
python2 setup.py install --root=$PKG |
|
|
|
|
mv $PKG/usr/bin/django-admin $PKG/usr/bin/django-admin-2.7 |
|
|
|
|
mv $PKG/usr/bin/django-admin.py $PKG/usr/bin/django-admin-2.7.py |
|
|
|
|
|
|
|
|
|
# And now for Python 3 |
|
|
|
|
python3 setup.py build |
|
|
|
|
python3 setup.py install --root=$PKG |
|
|
|
|
mv $PKG/usr/bin/django-admin $PKG/usr/bin/django-admin-3.7 |
|
|
|
|
mv $PKG/usr/bin/django-admin.py $PKG/usr/bin/django-admin-3.7.py |
|
|
|
|
|
|
|
|
|
# Add default symlinks to the -2.7 executables |
|
|
|
|
ln -s django-admin-2.7 $PKG/usr/bin/django-admin |
|
|
|
|
ln -s django-admin-2.7.py $PKG/usr/bin/django-admin.py |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
@ -101,6 +91,11 @@ fi
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|
|
|
|
|
|
# Add dependency infos |
|
|
|
|
cat <<EOF > $PKG/install/slack-required |
|
|
|
|
pytz |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
# Package the tree |
|
|
|
|
cd $PKG |
|
|
|
|
mkdir -p $OUT |
|
|
|
|