# SliTaz package receipt. PACKAGE="dulwich" VERSION="0.19.16" CATEGORY="development" SHORT_DESC="Git files formats and protocols for python." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://pypi.org/project/$PACKAGE/" REPOLOGY="python:dulwich" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://files.pythonhosted.org/packages/source/${PACKAGE:0:1}/$PACKAGE/$TARBALL" DEPENDS="python" BUILD_DEPENDS="python-dev" # What is the latest version available today? current_version() { wget -O - https://pypi.org/project/$PACKAGE/ 2>/dev/null | \ sed "/$PACKAGE-/!d;/tar.gz/!d;s|.*$PACKAGE-||;s|.tar.*||;q" } # Rules to configure and make the package. compile_rules() { python setup.py install --root=$DESTDIR --prefix=/usr } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }