blob: fce2a6d35c348c78de88d5492b5d9762d0094edc (
plain)
1 # Description: A set of python bindings for cairo.
2 # URL: https://pypi.org/project/pycairo/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: cairo
5
6 name=python-cairo
7 version=1.19.0
8 release=1
9 source=(https://github.com/pygobject/pycairo/releases/download/v$version/pycairo-$version.tar.gz)
10
11 build() {
12 cd pycairo-$version
13
14 /usr/bin/python setup.py build
15 /usr/bin/python setup.py install --skip-build --root=$PKG --optimize=1
16
17 local pyv="$(/usr/bin/python -c "import sys; print \"%s.%s\" % (sys.version_info[0], sys.version_info[1]);")"
18 find $PKG/usr/lib/python$pyv/site-packages/ -maxdepth 1 -type f \
19 -name "pycairo-$version-py$pyv.egg-info" -delete
20 }
|