wok view python-xdg/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 52910d6235cf
children 2e2732e7e234
line source
1 # SliTaz package receipt.
3 PACKAGE="python-xdg"
4 VERSION="0.26"
5 CATEGORY="development"
6 SHORT_DESC="Python library to access freedesktop.org standards."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/pyxdg/"
11 SOURCE="pyxdg"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/takluyver/pyxdg/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py build &&
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 }