wok-current view python-formalchemy/receipt @ rev 24661
updated ii (1.6 -> 1.9)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 13:28:05 2022 +0100 (2022-03-11) |
parents | 1df6fa555414 |
children | 5c893733007e |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-formalchemy"
4 VERSION="1.5.5"
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/"
11 SOURCE="FormAlchemy"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/F/$SOURCE/$TARBALL"
15 DEPENDS="python python-markupsafe python-sqlalchemy python-tempita
16 python-webhelpers python-webob"
17 BUILD_DEPENDS="python-dev python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py install --root=$DESTDIR
29 for i in $install/usr/lib/python*/site-packages/formalchemy/i18n_resources/*
30 do
31 [ -s formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po ] &&
32 rm $i/LC_MESSAGES/formalchemy.mo &&
33 msgfmt -o $i/LC_MESSAGES/formalchemy.mo \
34 formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po
35 done
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/usr $fs
42 }