wok-current view pycairo/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="pycairo"
4 VERSION="1.20.1"
5 CATEGORY="development"
6 SHORT_DESC="Python bindings for the cairo graphics library."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 WEB_SITE="https://www.cairographics.org/pycairo/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/pygobject/$PACKAGE/archive/v$VERSION/$TARBALL"
14 DEPENDS="cairo expat fontconfig freetype xorg-libX11 xorg-libXau \
15 xorg-libXdmcp xorg-libXrender xcb-util"
16 BUILD_DEPENDS="cairo cairo-dev pkg-config python3-dev xorg-xproto"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python3 setup.py build &&
28 python3 setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 PYTHON_LIB=python$(grep ^VERSION= $WOK/python3/receipt | sed 's/.*"\(...\).*/\1/')
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib
38 }