void-packages/srcpkgs/python3.4-cairo/template

32 lines
888 B
Bash

# Template file for 'python3.4-cairo'
pkgname=python3.4-cairo
version=1.10.0
revision=6
nocross=1
wrksrc="pycairo-${version}"
build_style=waf3
patch_args="-Np1"
hostmakedepends="pkg-config python3.4"
makedepends="cairo-devel python3.4-devel"
replaces="pycairo>=0"
short_desc="Python3.4 bindings for the cairo graphics library"
homepage="http://cairographics.org/pycairo/"
license="LGPL-3"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://cairographics.org/releases/pycairo-${version}.tar.bz2"
checksum=9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be
do_configure() {
PYTHON=python3.4 python3.4 waf configure --prefix=/usr
}
python3.4-cairo-devel_package() {
depends="python3.4-devel ${sourcepkg}>=${version}_${revision}"
replaces="pycairo-devel>=0"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}