wok annotate python-odoorpc/receipt @ rev 25600
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 15:14:43 2023 +0000 (16 months ago) |
parents | 5ea0ce1cecc0 |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@20292 | 1 # SliTaz package receipt. |
pascal@20292 | 2 |
pascal@20292 | 3 PACKAGE="python-odoorpc" |
Hans-G?nter@25209 | 4 VERSION="0.8.0" |
pascal@20292 | 5 CATEGORY="development" |
Hans-G?nter@25209 | 6 SHORT_DESC="Provides an easy way to pilot your Odoo servers through RPC." |
pascal@20292 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20292 | 8 LICENSE="GPL3" |
pascal@20292 | 9 WEB_SITE="https://pypi.org/project/OdooRPC/" |
Hans-G?nter@25209 | 10 REPOLOGY="python:odoorpc" |
Hans-G?nter@25209 | 11 |
Hans-G?nter@25209 | 12 SOURCE="OdooRPC" |
Hans-G?nter@25209 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25209 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@20292 | 15 |
pascal@20292 | 16 DEPENDS="python" |
Hans-G?nter@25209 | 17 BUILD_DEPENDS="python python-setuptools" |
pascal@20292 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@20292 | 25 # Rules to configure and make the package. |
pascal@20292 | 26 compile_rules() |
pascal@20292 | 27 { |
pascal@20292 | 28 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@20292 | 29 } |
pascal@20292 | 30 |
pascal@20292 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20292 | 32 genpkg_rules() |
pascal@20292 | 33 { |
Hans-G?nter@25209 | 34 cp -a $install/usr $fs |
pascal@20292 | 35 } |