wok-current annotate python-jinja2/receipt @ rev 24507
updated easy-rsa (3.0.6 -> 3.0.8)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 20 16:37:53 2022 +0100 (2022-02-20) |
parents | 1df6fa555414 |
children | 3ce9abc153e7 |
rev | line source |
---|---|
claudinei@3390 | 1 # SliTaz package receipt. |
claudinei@3390 | 2 |
claudinei@3390 | 3 PACKAGE="python-jinja2" |
Hans-G?nter@23501 | 4 VERSION="2.11.1" |
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@23501 | 10 |
Hans-G?nter@23501 | 11 SOURCE="Jinja2" |
claudinei@3390 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23501 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/J/$SOURCE/$TARBALL" |
pascal@15378 | 14 |
claudinei@14886 | 15 DEPENDS="python python-markupsafe" |
Hans-G?nter@23501 | 16 BUILD_DEPENDS="python python-setuptools" |
claudinei@3390 | 17 |
pascal@24383 | 18 # What is the latest version available today? |
pascal@24288 | 19 current_version() |
pascal@24288 | 20 { |
pascal@24383 | 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 22 } |
pascal@24288 | 23 |
claudinei@3390 | 24 # Rules to configure and make the package. |
claudinei@3390 | 25 compile_rules() |
claudinei@3390 | 26 { |
slaxemulator@9466 | 27 python setup.py install --root=$DESTDIR |
claudinei@3390 | 28 } |
claudinei@3390 | 29 |
claudinei@3390 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3390 | 31 genpkg_rules() |
claudinei@3390 | 32 { |
Hans-G?nter@23501 | 33 cp -a $install/usr $fs |
claudinei@3390 | 34 } |
claudinei@3390 | 35 |
claudinei@3404 | 36 # Remove old package. |
claudinei@3404 | 37 post_install() |
claudinei@3404 | 38 { |
pascal@18730 | 39 [ ! -d "$1/var/lib/tazpkg/installed/jinja2" ] || |
pascal@18730 | 40 rm -rf "$1/var/lib/tazpkg/installed/jinja2" |
claudinei@4675 | 41 } |