wok-6.x view python-formalchemy/receipt @ rev 25499
Up whois (5.5.14)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 22 13:03:20 2022 +0000 (2022-12-22) |
parents | 076f424196b2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-formalchemy"
4 VERSION="1.5.6"
5 CATEGORY="development"
6 SHORT_DESC="Auto-generated, customizable HTML output form fields from SQLAlchemy mapped classes."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/FormAlchemy/"
10 REPOLOGY="python:formalchemy"
12 SOURCE="FormAlchemy"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python python-markupsafe python-sqlalchemy python-tempita
17 python-webhelpers python-webob"
18 BUILD_DEPENDS="python-dev python-setuptools"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py install --root=$DESTDIR
30 for i in $install/usr/lib/python*/site-packages/formalchemy/i18n_resources/*
31 do
32 [ -s formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po ] &&
33 rm $i/LC_MESSAGES/formalchemy.mo &&
34 msgfmt -o $i/LC_MESSAGES/formalchemy.mo \
35 formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po
36 done
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cp -a $install/usr $fs
43 }