wok view python-django/receipt @ rev 25707
Up perl-net-pcap (0.21), qtermwidget (0.5.1), youtube-dl-gui (0.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 05 14:08:34 2024 +0000 (3 months ago) |
parents | 908717f36471 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-django"
4 VERSION="1.11.29"
5 CATEGORY="development"
6 SHORT_DESC="A high-level Python Web framework."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.djangoproject.com/"
11 SOURCE="Django"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://www.djangoproject.com/m/releases/${VERSION%.*}/$TARBALL"
15 SUGGESTED="python-mysql"
16 DEPENDS="python python-pysqlite"
17 BUILD_DEPENDS="python python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/latest/!d;s|.*release: ||;s|<.*||'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr $fs
37 }
39 # Remove old package.
40 post_install()
41 {
42 [ ! -d "$1/var/lib/tazpkg/installed/django" ] ||
43 rm -rf "$1/var/lib/tazpkg/installed/django"
44 }