wok-current annotate pycairo118/receipt @ rev 25702
Up git (CVE-2024-32002,CVE-2024-32004,CVE-2024-32020,CVE-2024-32021,CVE-2024-32465), gdk-pixbuf CVE-2022-48622, up linux 5.10.217
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 20 11:38:26 2024 +0000 (8 weeks ago) |
parents | |
children |
rev | line source |
---|---|
shann@25637 | 1 # SliTaz package receipt. |
shann@25637 | 2 |
shann@25637 | 3 PACKAGE="pycairo118" |
shann@25637 | 4 SOURCE="pycairo" |
shann@25637 | 5 VERSION="1.18.2" |
shann@25637 | 6 CATEGORY="development" |
shann@25637 | 7 SHORT_DESC="Python bindings for the cairo graphics library." |
shann@25637 | 8 MAINTAINER="erjo@slitaz.org" |
shann@25637 | 9 LICENSE="MPL LGPL2.1" |
shann@25637 | 10 WEB_SITE="https://www.cairographics.org/pycairo/" |
shann@25637 | 11 |
shann@25637 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
shann@25637 | 13 WGET_URL="https://github.com/pygobject/$SOURCE/archive/v$VERSION/$TARBALL" |
shann@25637 | 14 |
shann@25637 | 15 DEPENDS="cairo expat fontconfig freetype xorg-libX11 xorg-libXau \ |
shann@25637 | 16 xorg-libXdmcp xorg-libXrender xcb-util" |
shann@25637 | 17 BUILD_DEPENDS="cairo cairo-dev pkg-config python-dev xorg-xproto" |
shann@25637 | 18 |
shann@25637 | 19 current_version() |
shann@25637 | 20 { |
shann@25637 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
shann@25637 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
shann@25637 | 23 } |
shann@25637 | 24 |
shann@25637 | 25 # Rules to configure and make the package. |
shann@25637 | 26 compile_rules() |
shann@25637 | 27 { |
shann@25637 | 28 python setup.py build && |
shann@25637 | 29 python setup.py install --root=$DESTDIR |
shann@25637 | 30 } |
shann@25637 | 31 |
shann@25637 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
shann@25637 | 33 genpkg_rules() |
shann@25637 | 34 { |
shann@25637 | 35 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
shann@25637 | 36 |
shann@25637 | 37 mkdir -p $fs/usr/lib |
shann@25637 | 38 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib |
shann@25637 | 39 } |