wok view python-cups/receipt @ rev 24647
updated hp15c (4.0.00 -> 4.3.00)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 10 11:23:00 2022 +0100 (2022-03-10) |
parents | 75860e279936 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-cups"
4 VERSION="1.9.74"
5 CATEGORY="development"
6 SHORT_DESC="Python bindings for libcups."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://pypi.python.org/pypi/pycups"
11 SOURCE="pycups"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
19 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
20 }
22 DEPENDS="libcups python"
23 BUILD_DEPENDS="cups-dev python-dev"
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/usr $fs
35 }