wok-6.x annotate pycairo/receipt @ rev 24731
updated libdvdread and libdvdread-dev (6.0.2 -> 6.1.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 17:30:53 2022 +0100 (2022-03-15) |
parents | feb4dddd17bc |
children |
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 } |