wok view openerp-client-etl/receipt @ rev 24391

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 18:01:05 2022 +0000 (2022-02-07)
parents c0cb4b7f2e21
children 59547e97954f
line source
1 # SliTaz package receipt.
3 PACKAGE="openerp-client-etl"
4 VERSION="1.1.1"
5 CATEGORY="development"
6 SHORT_DESC="Allows to extract, transform and load data from any data source."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="https://pypi.python.org/pypi/openerp-client-etl"
10 WGET_URL="https://pypi.python.org/packages/source/o/$PACKAGE/$TARBALL"
12 DEPENDS="python wget"
13 BUILD_DEPENDS="python-dev python"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://pypi.org/project/$PACKAGE/ 2>/dev/null | \
19 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||;q"
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 python setup.py build &&
26 python setup.py install --root=$DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/usr $fs
33 }