wok annotate python-xdg/receipt @ rev 25578
Remove nimrod
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 14 19:10:16 2023 +0000 (18 months ago) |
parents | 2f230197370e |
children |
rev | line source |
---|---|
paul@3942 | 1 # SliTaz package receipt. |
paul@3942 | 2 |
paul@3942 | 3 PACKAGE="python-xdg" |
Hans-G?nter@25251 | 4 VERSION="0.27" |
paul@3942 | 5 CATEGORY="development" |
paul@3942 | 6 SHORT_DESC="Python library to access freedesktop.org standards." |
paul@3942 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15376 | 8 LICENSE="LGPL2" |
Hans-G?nter@25251 | 9 WEB_SITE="https://pypi.org/project/pyxdg/" |
Hans-G?nter@25251 | 10 REPOLOGY="python:pyxdg" |
Hans-G?nter@23585 | 11 |
paul@3942 | 12 SOURCE="pyxdg" |
paul@3942 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23585 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
paul@3942 | 15 |
pascal@15376 | 16 DEPENDS="python" |
Hans-G?nter@25251 | 17 BUILD_DEPENDS="python python-dev python-setuptools" |
pascal@15376 | 18 |
pascal@24459 | 19 # What is the latest version available today? |
pascal@24459 | 20 current_version() |
pascal@24459 | 21 { |
pascal@24459 | 22 wget -O - https://github.com/takluyver/pyxdg/tags 2>/dev/null | \ |
pascal@24459 | 23 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' |
pascal@24459 | 24 } |
pascal@24459 | 25 |
paul@3942 | 26 # Rules to configure and make the package. |
paul@3942 | 27 compile_rules() |
paul@3942 | 28 { |
paul@3942 | 29 python setup.py build && |
pascal@15376 | 30 python setup.py install --root=$DESTDIR |
paul@3942 | 31 } |
paul@3942 | 32 |
paul@3942 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@3942 | 34 genpkg_rules() |
paul@3942 | 35 { |
Hans-G?nter@25251 | 36 cook_copy_folders lib |
paul@3942 | 37 } |