wok annotate python-django/receipt @ rev 19566
get-flash-plugin: busybox wget gets https
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Tue Dec 20 01:18:30 2016 -0500 (2016-12-20) |
parents | 1067bb7f1e24 |
children | 5d50a02468c7 |
rev | line source |
---|---|
claudinei@3389 | 1 # SliTaz package receipt. |
claudinei@3389 | 2 |
claudinei@3389 | 3 PACKAGE="python-django" |
claudinei@3389 | 4 SOURCE="Django" |
claudinei@14875 | 5 VERSION="1.5.1" |
claudinei@3389 | 6 CATEGORY="development" |
claudinei@3389 | 7 SHORT_DESC="Django is a high-level Python Web framework." |
claudinei@3389 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15378 | 9 LICENSE="BSD" |
claudinei@3389 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@14875 | 11 WEB_SITE="https://www.djangoproject.com/" |
pascal@17869 | 12 WGET_URL="https://www.djangoproject.com/m/releases/${VERSION%.*}/$TARBALL" |
pascal@15378 | 13 SUGGESTED="python-mysql" |
pascal@15378 | 14 |
claudinei@3413 | 15 DEPENDS="python python-pysqlite" |
claudinei@14875 | 16 BUILD_DEPENDS="setuptools wget" |
claudinei@3389 | 17 |
claudinei@3389 | 18 # Rules to configure and make the package. |
claudinei@3389 | 19 compile_rules() |
claudinei@3389 | 20 { |
slaxemulator@9464 | 21 python setup.py install --root=$DESTDIR |
claudinei@3389 | 22 } |
claudinei@3389 | 23 |
claudinei@3389 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3389 | 25 genpkg_rules() |
claudinei@3389 | 26 { |
claudinei@3389 | 27 mkdir -p $fs/usr |
claudinei@14875 | 28 cp -a $install/usr $fs |
claudinei@3389 | 29 } |
claudinei@3389 | 30 |
claudinei@3404 | 31 # Remove old package. |
claudinei@3404 | 32 post_install() |
claudinei@3404 | 33 { |
pascal@18730 | 34 [ ! -d "$1/var/lib/tazpkg/installed/django" ] || |
pascal@18730 | 35 rm -rf "$1/var/lib/tazpkg/installed/django" |
claudinei@3413 | 36 } |
al@18077 | 37 |