wok-6.x annotate python-django/receipt @ rev 23619

updated rsnapshot (1.4.2 -> 1.4.3)
author Hans-G?nter Theisgen
date Tue Apr 14 14:13:02 2020 +0100 (2020-04-14)
parents 5d50a02468c7
children 2f230197370e
rev   line source
claudinei@3389 1 # SliTaz package receipt.
claudinei@3389 2
claudinei@3389 3 PACKAGE="python-django"
Hans-G?nter@23478 4 VERSION="1.11.29"
claudinei@3389 5 CATEGORY="development"
Hans-G?nter@23478 6 SHORT_DESC="A high-level Python Web framework."
claudinei@3389 7 MAINTAINER="claudinei@slitaz.org"
pascal@15378 8 LICENSE="BSD"
Hans-G?nter@23478 9 WEB_SITE="https://www.djangoproject.com/"
Hans-G?nter@23478 10
Hans-G?nter@23478 11 SOURCE="Django"
claudinei@3389 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@17869 13 WGET_URL="https://www.djangoproject.com/m/releases/${VERSION%.*}/$TARBALL"
Hans-G?nter@23478 14
pascal@15378 15 SUGGESTED="python-mysql"
claudinei@3413 16 DEPENDS="python python-pysqlite"
Hans-G?nter@23478 17 BUILD_DEPENDS="python python-setuptools"
claudinei@3389 18
claudinei@3389 19 # Rules to configure and make the package.
claudinei@3389 20 compile_rules()
claudinei@3389 21 {
slaxemulator@9464 22 python setup.py install --root=$DESTDIR
claudinei@3389 23 }
claudinei@3389 24
claudinei@3389 25 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3389 26 genpkg_rules()
claudinei@3389 27 {
claudinei@3389 28 mkdir -p $fs/usr
Hans-G?nter@23478 29 cp -a $install/usr $fs
claudinei@3389 30 }
claudinei@3389 31
claudinei@3404 32 # Remove old package.
claudinei@3404 33 post_install()
claudinei@3404 34 {
pascal@18730 35 [ ! -d "$1/var/lib/tazpkg/installed/django" ] ||
pascal@18730 36 rm -rf "$1/var/lib/tazpkg/installed/django"
claudinei@3413 37 }