wok-current annotate python-odoorpc/receipt @ rev 24255
updated perl-test-fatal (0.014 -> 0.016)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 09:59:54 2022 +0100 (2022-01-02) |
parents | dfc6cdc5624e |
children | a6d2faa0c47e |
rev | line source |
---|---|
pascal@20292 | 1 # SliTaz package receipt. |
pascal@20292 | 2 |
pascal@20292 | 3 PACKAGE="python-odoorpc" |
pascal@20292 | 4 VERSION="0.6.1" |
pascal@20292 | 5 CATEGORY="development" |
pascal@20292 | 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/" |
pascal@20292 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20292 | 11 WGET_URL="https://github.com/OCA/odoorpc/archive/v$VERSION.tar.gz" |
pascal@20292 | 12 |
pascal@20292 | 13 DEPENDS="python" |
pascal@20292 | 14 |
pascal@24055 | 15 current_version() |
pascal@24055 | 16 { |
pascal@24055 | 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 19 } |
pascal@24055 | 20 |
pascal@20292 | 21 # Rules to configure and make the package. |
pascal@20292 | 22 compile_rules() |
pascal@20292 | 23 { |
pascal@20292 | 24 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@20292 | 25 } |
pascal@20292 | 26 |
pascal@20292 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20292 | 28 genpkg_rules() |
pascal@20292 | 29 { |
pascal@20292 | 30 cp -a $install/usr $fs/ |
pascal@20292 | 31 } |