wok annotate python-pyyaml/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | 8196165b108a |
children |
rev | line source |
---|---|
rocky@3575 | 1 # SliTaz package receipt. |
rocky@3575 | 2 |
rocky@3575 | 3 PACKAGE="python-pyyaml" |
Hans-G?nter@23550 | 4 VERSION="5.3.1" |
rocky@3575 | 5 CATEGORY="development" |
rocky@3575 | 6 SHORT_DESC="YAML parser and emitter for the Python programming language." |
rocky@3575 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15378 | 8 LICENSE="MIT" |
Hans-G?nter@23550 | 9 WEB_SITE="https://pyyaml.org/wiki/PyYAML" |
Hans-G?nter@23550 | 10 |
rocky@3575 | 11 SOURCE="PyYAML" |
rocky@3575 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20671 | 13 WGET_URL="https://pyyaml.org/download/pyyaml/$TARBALL" |
rocky@3575 | 14 |
pascal@15092 | 15 DEPENDS="python" |
pascal@15092 | 16 BUILD_DEPENDS="python python-dev yaml-dev" |
pascal@15092 | 17 |
pascal@24453 | 18 # What is the latest version available today? |
pascal@24453 | 19 current_version() |
pascal@24453 | 20 { |
pascal@24453 | 21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 22 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 23 } |
pascal@24453 | 24 |
rocky@3575 | 25 # Rules to configure and make the package. |
rocky@3575 | 26 compile_rules() |
rocky@3575 | 27 { |
al@18086 | 28 python setup.py install --root=$DESTDIR |
rocky@3575 | 29 } |
rocky@3575 | 30 |
rocky@3575 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
rocky@3575 | 32 genpkg_rules() |
rocky@3575 | 33 { |
al@18086 | 34 mkdir -p $fs/usr |
Hans-G?nter@23550 | 35 cp -a $install/usr $fs |
rocky@3575 | 36 } |