# SliTaz package receipt. PACKAGE="python-pyyaml" VERSION="5.3.1" CATEGORY="development" SHORT_DESC="YAML parser and emitter for the Python programming language." MAINTAINER="rocky@slitaz.org" LICENSE="MIT" WEB_SITE="https://pyyaml.org/wiki/PyYAML" SOURCE="PyYAML" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="https://pyyaml.org/download/pyyaml/$TARBALL" DEPENDS="python" BUILD_DEPENDS="python python-dev yaml-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { python setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr $fs }