# SliTaz package receipt. PACKAGE="pycairo" VERSION="1.10.0" CATEGORY="development" SHORT_DESC="Python bindings for the cairo graphics library." MAINTAINER="erjo@slitaz.org" DEPENDS="cairo expat fontconfig freetype xorg-libX11 xorg-libXau \ xorg-libXdmcp xorg-libXrender xcb-util" BUILD_DEPENDS="pkg-config cairo cairo-dev xorg-xproto python-dev" SOURCE="py2cairo" TARBALL="$SOURCE-$VERSION.tar.bz2" WEB_SITE="http://www.cairographics.org/pycairo/" WGET_URL="http://www.cairographics.org/releases/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src ./waf configure --prefix=/usr && ./waf build && ./waf install --destdir=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') mkdir -p $fs/usr/lib cp -a $_pkg/usr/lib/$PYTHON_LIB $fs/usr/lib }