wok-6.x view python-jinja2/receipt @ rev 23853

Up alsa-utils (1.2.2)
author Richard Dunbar <mojo@slitaz.org>
date Mon Jun 15 17:30:36 2020 -0400 (2020-06-15)
parents 814362194a8d
children 1df6fa555414
line source
1 # SliTaz package receipt.
3 PACKAGE="python-jinja2"
4 VERSION="2.11.1"
5 CATEGORY="development"
6 SHORT_DESC="Stand-alone template engine."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.org/project/Jinja2"
11 SOURCE="Jinja2"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/J/$SOURCE/$TARBALL"
15 DEPENDS="python python-markupsafe"
16 BUILD_DEPENDS="python python-setuptools"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 python setup.py install --root=$DESTDIR
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 cp -a $install/usr $fs
28 }
30 # Remove old package.
31 post_install()
32 {
33 [ ! -d "$1/var/lib/tazpkg/installed/jinja2" ] ||
34 rm -rf "$1/var/lib/tazpkg/installed/jinja2"
35 }