wok annotate pyvim/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 341e72d2d146
children 59547e97954f
rev   line source
paul@18825 1 # SliTaz package receipt.
paul@18825 2
paul@18825 3 PACKAGE="pyvim"
Hans-G?nter@23589 4 VERSION="2.0.24"
paul@18825 5 CATEGORY="development"
paul@18825 6 SHORT_DESC="Pure Python Vi Implementation."
paul@18825 7 MAINTAINER="paul@slitaz.org"
Hans-G?nter@23589 8 WEB_SITE="https://github.com/jonathanslenders/pyvim"
Hans-G?nter@23589 9
Hans-G?nter@23589 10 SOURCE="pyvim"
paul@18825 11 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23589 12 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
paul@18825 13
Hans-G?nter@23589 14 DEPENDS="ptpython python python-docopt python-prompt-toolkit python-pyflakes"
Hans-G?nter@23589 15 BUILD_DEPENDS="ptpython python python-dev python-docopt python-prompt-toolkit
Hans-G?nter@23589 16 python-pyflakes python-setuptools"
paul@18825 17
pascal@24308 18 # What is the latest version available today?
pascal@24308 19 current_version()
pascal@24308 20 {
pascal@24308 21 wget -O - $WEB_SITE/tags 2>/dev/null | \
pascal@24308 22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 23 }
pascal@24308 24
paul@18825 25 # Rules to configure and make the package.
paul@18825 26 compile_rules()
paul@18825 27 {
paul@18825 28 python setup.py install --root=$DESTDIR
paul@18825 29 }
paul@18825 30
paul@18825 31 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@18825 32 genpkg_rules()
paul@18825 33 {
Hans-G?nter@23589 34 cp -a $install/usr $fs
paul@18825 35 }