wok annotate python-sqlalchemy/receipt @ rev 25562
ext4magic: add current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 01 08:21:00 2023 +0000 (16 months ago) |
parents | 076f424196b2 |
children |
rev | line source |
---|---|
claudinei@3826 | 1 # SliTaz package receipt. |
claudinei@3826 | 2 |
claudinei@3826 | 3 PACKAGE="python-sqlalchemy" |
Hans-G?nter@25242 | 4 VERSION="1.4.29" |
claudinei@3826 | 5 CATEGORY="development" |
Hans-G?nter@23565 | 6 SHORT_DESC="The Python SQL toolkit and Object Relational Mapper." |
claudinei@3826 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15376 | 8 LICENSE="MIT" |
Hans-G?nter@23565 | 9 WEB_SITE="https://pypi.org/project/SQLAlchemy/" |
Hans-G?nter@25242 | 10 REPOLOGY="python:sqlalchemy" |
Hans-G?nter@23565 | 11 |
Hans-G?nter@23565 | 12 SOURCE="SQLAlchemy" |
Hans-G?nter@23565 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23565 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
Hans-G?nter@23565 | 15 |
claudinei@3826 | 16 SUGGESTED="python-pysqlite" |
pascal@15376 | 17 DEPENDS="python" |
Hans-G?nter@23565 | 18 BUILD_DEPENDS="python python-dev python-setuptools" |
pascal@15376 | 19 |
pascal@24383 | 20 # What is the latest version available today? |
pascal@24288 | 21 current_version() |
pascal@24288 | 22 { |
pascal@24383 | 23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 24 } |
pascal@24288 | 25 |
claudinei@3826 | 26 # Rules to configure and make the package. |
claudinei@3826 | 27 compile_rules() |
claudinei@3826 | 28 { |
claudinei@14887 | 29 python setup.py install --root=$DESTDIR |
claudinei@3826 | 30 } |
claudinei@3826 | 31 |
claudinei@3826 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3826 | 33 genpkg_rules() |
claudinei@3826 | 34 { |
Hans-G?nter@25242 | 35 cook_copy_folders lib |
claudinei@3826 | 36 } |