wok-current annotate python-zfec/receipt @ rev 25556
created recipes for nted and nted-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 22 14:54:15 2023 +0100 (20 months ago) |
parents | 104a2a2e5484 |
children |
rev | line source |
---|---|
pascal@18222 | 1 # SliTaz package receipt. |
pascal@18222 | 2 |
pascal@18222 | 3 PACKAGE="python-zfec" |
Hans-G?nter@25252 | 4 VERSION="1.5.5" |
pascal@18222 | 5 CATEGORY="development" |
pascal@18222 | 6 SHORT_DESC="A fast erasure codec." |
pascal@18222 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18334 | 8 LICENSE="GPL2" |
Hans-G?nter@25252 | 9 WEB_SITE="https://pypi.org/project/zfec/" |
Hans-G?nter@25252 | 10 REPOLOGY="python:zfec" |
Hans-G?nter@23588 | 11 |
pascal@18222 | 12 SOURCE="zfec" |
pascal@18222 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23588 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@18222 | 15 |
pascal@18222 | 16 DEPENDS="python" |
Hans-G?nter@23588 | 17 BUILD_DEPENDS="python python-dev python-setuptools" |
pascal@18222 | 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@18222 | 26 # Rules to configure and make the package. |
pascal@18222 | 27 compile_rules() |
pascal@18222 | 28 { |
pascal@18222 | 29 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@18222 | 30 } |
pascal@18222 | 31 |
pascal@18222 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18222 | 33 genpkg_rules() |
pascal@18222 | 34 { |
Hans-G?nter@25252 | 35 cook_copy_folders bin |
Hans-G?nter@25252 | 36 cook_copy_folders lib |
pascal@18222 | 37 } |