wok-current annotate python-attr/receipt @ rev 24970

created recipe for midori-lang
author Hans-G?nter Theisgen
date Tue Apr 26 14:49:30 2022 +0100 (2022-04-26)
parents 2042c3181dc5
children
rev   line source
pascal@22102 1 # SliTaz package receipt.
pascal@22102 2
pascal@22102 3 PACKAGE="python-attr"
pascal@22102 4 SOURCE="attr"
pascal@22102 5 VERSION="0.3.1"
pascal@22102 6 CATEGORY="development"
pascal@22102 7 SHORT_DESC="Simple decorator to set attributes of target function or class in a DRY way"
pascal@22102 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@22102 9 LICENSE="MIT"
pascal@22102 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@22102 11 WEB_SITE="https://github.com/denis-ryzhkov/attr"
pascal@22102 12 WGET_URL="https://files.pythonhosted.org/packages/de/be/ddc7f84d4e087144472a38a373d3e319f51a6faf6e5fc1ae897173675f21/$TARBALL"
pascal@22102 13
pascal@22102 14 DEPENDS="python"
pascal@22102 15 BUILD_DEPENDS="python-setuptools"
pascal@22102 16
pascal@24497 17 # What is the latest version available today?
pascal@24497 18 current_version()
pascal@24497 19 {
pascal@24497 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24497 21 sed '/attr version/!d;s|.*version ||;s|<.*||'
pascal@24497 22 }
pascal@24497 23
pascal@22102 24 # Rules to configure and make the package.
pascal@22102 25 compile_rules()
pascal@22102 26 {
pascal@22102 27 python setup.py build &&
pascal@22102 28 python setup.py install --root=$DESTDIR
pascal@22102 29 }
pascal@22102 30
pascal@22102 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@22102 32 genpkg_rules()
pascal@22102 33 {
pascal@22102 34 mkdir -p $fs
pascal@22102 35 cp -a $install/usr $fs
pascal@22102 36 }