wok annotate python-cups/receipt @ rev 25188

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