wok-current annotate python-unidecode/receipt @ rev 25593
Use default gcc 6.3 for flac
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Aug 31 19:04:33 2023 +0000 (12 months ago) |
parents | 104a2a2e5484 |
children |
rev | line source |
---|---|
pascal@17912 | 1 # SliTaz package receipt. |
pascal@17912 | 2 |
pascal@17912 | 3 PACKAGE="python-unidecode" |
Hans-G?nter@25245 | 4 VERSION="1.2.0" # last version for Python 2 |
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@25245 | 9 WEB_SITE="https://pypi.org/project/Unidecode/" |
Hans-G?nter@25245 | 10 REPOLOGY="python:unidecode" |
Hans-G?nter@23572 | 11 |
pascal@17912 | 12 SOURCE="Unidecode" |
pascal@17912 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23572 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@17912 | 15 |
pascal@17912 | 16 DEPENDS="python" |
Hans-G?nter@23572 | 17 BUILD_DEPENDS="python python-setuptools" |
pascal@17912 | 18 |
pascal@24391 | 19 # What is the latest version available today? |
pascal@24391 | 20 current_version() |
pascal@24391 | 21 { |
pascal@24391 | 22 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 23 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 24 } |
pascal@24391 | 25 |
pascal@17912 | 26 # Rules to configure and make the package. |
pascal@17912 | 27 compile_rules() |
pascal@17912 | 28 { |
pascal@17912 | 29 python setup.py install --root=$DESTDIR |
pascal@17912 | 30 } |
pascal@17912 | 31 |
pascal@17912 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17912 | 33 genpkg_rules() |
pascal@17912 | 34 { |
Hans-G?nter@23572 | 35 cp -a $install/usr $fs |
pascal@17912 | 36 } |