wok view pycairo/receipt @ rev 24423
modified recipe for claws-mail-rssyl
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 11 16:50:00 2022 +0100 (2022-02-11) |
parents | feb4dddd17bc |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="pycairo"
4 VERSION="1.18.2"
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 python-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 python setup.py build &&
28 python 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/python/receipt | sed 's/.*"\(...\).*/\1/')
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib
38 }