rev |
line source |
pascal@20451
|
1 # SliTaz package receipt.
|
pascal@20451
|
2
|
pascal@20451
|
3 PACKAGE="python-flask"
|
Hans-G?nter@23482
|
4 VERSION="1.1.2"
|
pascal@20451
|
5 CATEGORY="development"
|
Hans-G?nter@23482
|
6 SHORT_DESC="A simple framework for building complex web applications."
|
pascal@20451
|
7 MAINTAINER="pascal.bellard@slitaz.org"
|
pascal@20451
|
8 LICENSE="BSD"
|
Hans-G?nter@23482
|
9 WEB_SITE="https://palletsprojects.com/p/flask/"
|
Hans-G?nter@23482
|
10
|
Hans-G?nter@23482
|
11 SOURCE="Flask"
|
pascal@20451
|
12 TARBALL="$SOURCE-$VERSION.tar.gz"
|
Hans-G?nter@23482
|
13 WGET_URL="https://files.pythonhosted.org/packages/source/F/$SOURCE/$TARBALL"
|
pascal@20451
|
14
|
pascal@20451
|
15 DEPENDS="python-click python-itsdangerous"
|
Hans-G?nter@23482
|
16 BUILD_DEPENDS="python python-setuptools"
|
pascal@20451
|
17
|
pascal@24500
|
18 # What is the latest version available today?
|
pascal@24500
|
19 current_version()
|
pascal@24500
|
20 {
|
pascal@24500
|
21 wget -O - https://pypi.org/project/Flask/ 2>/dev/null | \
|
pascal@24500
|
22 sed '/Flask [0-9]/!d;s|.*Flask ||'
|
pascal@24500
|
23 }
|
pascal@24500
|
24
|
pascal@20451
|
25 # Rules to configure and make the package.
|
pascal@20451
|
26 compile_rules()
|
pascal@20451
|
27 {
|
pascal@20451
|
28 python setup.py install --prefix=/usr --root=$DESTDIR
|
pascal@20451
|
29 }
|
pascal@20451
|
30
|
pascal@20451
|
31 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pascal@20451
|
32 genpkg_rules()
|
pascal@20451
|
33 {
|
Hans-G?nter@23482
|
34 cp -a $install/usr $fs
|
pascal@20451
|
35 }
|