wok-6.x view zopeinterface/receipt @ rev 24304

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 11:01:52 2022 +0000 (2022-01-17)
parents 7390f8de9846
children fb22330086d8
line source
1 # SliTaz package receipt.
3 PACKAGE="zopeinterface"
4 VERSION="4.0.5"
5 CATEGORY="network"
6 SHORT_DESC="Zope 4 Interface Infrastructure."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 SOURCE="zope.interface"
10 TARBALL="$SOURCE-$VERSION.zip"
11 WEB_SITE="https://pypi.python.org/pypi/zope.interface"
12 WGET_URL="https://pypi.python.org/packages/source/z/$SOURCE/$TARBALL"
13 TAGS="webserver application-server appserver"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-dev wget"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py build && python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/usr $fs
34 }