wok-current annotate pycairo/receipt @ rev 24390
updated c_icap and c_icap-dev (0.5.6 -> 0.5.10)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 07 17:45:34 2022 +0100 (2022-02-07) |
parents | feb4dddd17bc |
children | 3ad63c8fc2f9 |
rev | line source |
---|---|
erjo@1175 | 1 # SliTaz package receipt. |
erjo@1175 | 2 |
erjo@1175 | 3 PACKAGE="pycairo" |
Hans-G?nter@23458 | 4 VERSION="1.18.2" |
erjo@1175 | 5 CATEGORY="development" |
erjo@1175 | 6 SHORT_DESC="Python bindings for the cairo graphics library." |
erjo@1175 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15376 | 8 LICENSE="MPL LGPL2.1" |
pascal@20669 | 9 WEB_SITE="https://www.cairographics.org/pycairo/" |
Hans-G?nter@23458 | 10 |
Hans-G?nter@23458 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23458 | 12 WGET_URL="https://github.com/pygobject/$PACKAGE/archive/v$VERSION/$TARBALL" |
erjo@1175 | 13 |
pascal@15376 | 14 DEPENDS="cairo expat fontconfig freetype xorg-libX11 xorg-libXau \ |
Hans-G?nter@23458 | 15 xorg-libXdmcp xorg-libXrender xcb-util" |
Hans-G?nter@23458 | 16 BUILD_DEPENDS="cairo cairo-dev pkg-config python-dev xorg-xproto" |
pascal@15376 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
erjo@1175 | 24 # Rules to configure and make the package. |
erjo@1175 | 25 compile_rules() |
erjo@1175 | 26 { |
Hans-G?nter@23458 | 27 python setup.py build && |
Hans-G?nter@23458 | 28 python setup.py install --root=$DESTDIR |
erjo@1175 | 29 } |
erjo@1175 | 30 |
erjo@1175 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1175 | 32 genpkg_rules() |
erjo@1175 | 33 { |
pascal@6594 | 34 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
Hans-G?nter@23458 | 35 |
erjo@1175 | 36 mkdir -p $fs/usr/lib |
Hans-G?nter@23458 | 37 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib |
erjo@1175 | 38 } |