wok annotate python-unidecode/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents cd6572046bf4
children fb6f03a9c7b4
rev   line source
pascal@17912 1 # SliTaz package receipt.
pascal@17912 2
pascal@17912 3 PACKAGE="python-unidecode"
Hans-G?nter@23572 4 VERSION="1.1.1"
pascal@17912 5 CATEGORY="development"
pascal@17912 6 SHORT_DESC="ASCII transliterations of Unicode text."
pascal@17912 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17912 8 LICENSE="GPL2"
Hans-G?nter@23572 9 WEB_SITE="https://pypi.python.org/pypi/Unidecode"
Hans-G?nter@23572 10
pascal@17912 11 SOURCE="Unidecode"
pascal@17912 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23572 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@17912 14
pascal@17912 15 DEPENDS="python"
Hans-G?nter@23572 16 BUILD_DEPENDS="python python-setuptools"
pascal@17912 17
pascal@24391 18 # What is the latest version available today?
pascal@24391 19 current_version()
pascal@24391 20 {
pascal@24391 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@24391 22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
pascal@24391 23 }
pascal@24391 24
pascal@17912 25 # Rules to configure and make the package.
pascal@17912 26 compile_rules()
pascal@17912 27 {
pascal@17912 28 python setup.py install --root=$DESTDIR
pascal@17912 29 }
pascal@17912 30
pascal@17912 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17912 32 genpkg_rules()
pascal@17912 33 {
Hans-G?nter@23572 34 cp -a $install/usr $fs
pascal@17912 35 }