wok-6.x view python-django/receipt @ rev 24755

gtklp: ignore ERROR from autogen.sh
author Hans-G?nter Theisgen
date Thu Mar 17 07:54:00 2022 +0100 (2022-03-17)
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 }