wok-6.x view dulwich/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | ef8eb9b74ca4 |
children | 108a67969c7a |
line source
1 # SliTaz package receipt.
3 PACKAGE="dulwich"
4 VERSION="0.19.14"
5 CATEGORY="development"
6 SHORT_DESC="Git files formats and protocols for python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://pypi.org/project/$PACKAGE/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.dulwich.io/releases/$TARBALL"
14 DEPENDS="python"
15 BUILD_DEPENDS="python-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://pypi.org/project/$PACKAGE/ 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar.gz/!d;s|.*$PACKAGE-||;s|.tar.*||;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py install --root=$DESTDIR --prefix=/usr
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/* $fs
34 }