wok-current view python-dnspython/receipt @ rev 24459

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 11:53:30 2022 +0000 (2022-02-16)
parents 3d9966aceee9
children 870e1ce31226
line source
1 # SliTaz package receipt.
3 PACKAGE="python-dnspython"
4 VERSION="1.16.0"
5 CATEGORY="development"
6 SHORT_DESC="A DNS toolkit for Python."
7 MAINTAINER="monghitri@aruba.it"
8 LICENSE="BSD"
9 WEB_SITE="https://www.dnspython.org/"
11 SOURCE="dnspython"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://www.dnspython.org/kits/$VERSION/$TARBALL"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-setuptools"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://pypi.org/project/dnspython/ 2>/dev/null | \
22 sed '/dnspython [0-9]/!d;s|.*dnspython ||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/usr $fs
35 }