wok-current view pycairo118/receipt @ rev 25694

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