wok view python-oauth2/receipt @ rev 24308

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 18:18:17 2022 +0000 (2022-01-17)
parents c682d56f19c8
children 3abeffdae80b
line source
1 # SliTaz package receipt.
3 PACKAGE="python-oauth2"
4 VERSION="1.9.0"
5 CATEGORY="development"
6 TAGS="python"
7 SHORT_DESC="Library for OAuth version 1.0."
8 MAINTAINER="paul@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/simplegeo/python-oauth2"
12 SOURCE="oauth2"
13 TARBALL="$SOURCE-$VERSION.post1.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/o/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python python-dev python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 }