wok-current view python-xdg/receipt @ rev 25729
Merge wok for both arch and few updates (again)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:52:36 2024 +0000 (5 weeks ago) |
parents | 2e2732e7e234 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-xdg"
4 VERSION="0.27"
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://pypi.org/project/pyxdg/"
10 REPOLOGY="python:pyxdg"
12 SOURCE="pyxdg"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python python-dev python-setuptools"
19 HOST_ARCH="i486 x86_64"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/takluyver/pyxdg/tags 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 python setup.py build &&
32 python setup.py install --root=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_folders lib
39 }