wok annotate python-jinja2/receipt @ rev 25386
updated unrar (5.9.2 -> 6.1.7)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 17:51:49 2022 +0100 (2022-07-30) |
parents | 076f424196b2 |
children |
rev | line source |
---|---|
claudinei@3390 | 1 # SliTaz package receipt. |
claudinei@3390 | 2 |
claudinei@3390 | 3 PACKAGE="python-jinja2" |
Hans-G?nter@25199 | 4 VERSION="2.11.3" |
claudinei@3390 | 5 CATEGORY="development" |
claudinei@3390 | 6 SHORT_DESC="Stand-alone template engine." |
claudinei@3390 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15378 | 8 LICENSE="BSD" |
Hans-G?nter@23501 | 9 WEB_SITE="https://pypi.org/project/Jinja2" |
Hans-G?nter@25199 | 10 REPOLOGY="python:jinja2" |
Hans-G?nter@23501 | 11 |
Hans-G?nter@23501 | 12 SOURCE="Jinja2" |
claudinei@3390 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25199 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15378 | 15 |
claudinei@14886 | 16 DEPENDS="python python-markupsafe" |
Hans-G?nter@23501 | 17 BUILD_DEPENDS="python python-setuptools" |
claudinei@3390 | 18 |
pascal@24383 | 19 # What is the latest version available today? |
pascal@24288 | 20 current_version() |
pascal@24288 | 21 { |
pascal@24383 | 22 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 23 } |
pascal@24288 | 24 |
claudinei@3390 | 25 # Rules to configure and make the package. |
claudinei@3390 | 26 compile_rules() |
claudinei@3390 | 27 { |
slaxemulator@9466 | 28 python setup.py install --root=$DESTDIR |
claudinei@3390 | 29 } |
claudinei@3390 | 30 |
claudinei@3390 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3390 | 32 genpkg_rules() |
claudinei@3390 | 33 { |
Hans-G?nter@23501 | 34 cp -a $install/usr $fs |
claudinei@3390 | 35 } |
claudinei@3390 | 36 |
claudinei@3404 | 37 # Remove old package. |
claudinei@3404 | 38 post_install() |
claudinei@3404 | 39 { |
pascal@18730 | 40 [ ! -d "$1/var/lib/tazpkg/installed/jinja2" ] || |
pascal@18730 | 41 rm -rf "$1/var/lib/tazpkg/installed/jinja2" |
claudinei@4675 | 42 } |