mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 10:37:14 +08:00
30 lines
811 B
Bash
30 lines
811 B
Bash
|
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
||
|
# Contributor from Arch: Jan de Groot <jgc@archlinux.org>
|
||
|
|
||
|
pkgname=pycairo
|
||
|
pkgver=1.10.0
|
||
|
pkgrel=1
|
||
|
pkgdesc="Python bindings for the cairo graphics library"
|
||
|
arch=('x86_64')
|
||
|
license=('LGPL' 'MPL')
|
||
|
depends=('python2' 'cairo')
|
||
|
options=('!libtool')
|
||
|
source=(http://cairographics.org/releases/py2cairo-${pkgver}.tar.bz2)
|
||
|
url="http://www.cairographics.org/pycairo"
|
||
|
md5sums=('20337132c4ab06c1146ad384d55372c5')
|
||
|
|
||
|
build() {
|
||
|
cd "${srcdir}/py2cairo-${pkgver}"
|
||
|
sed -i 's:bin/env python:bin/env python2:' waf
|
||
|
python2 ./waf --version
|
||
|
pushd .waf-*
|
||
|
popd
|
||
|
PYTHON=/usr/bin/python2 ./waf configure --prefix=/usr
|
||
|
PYTHON=/usr/bin/python2 ./waf build
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "${srcdir}/py2cairo-${pkgver}"
|
||
|
PYTHON=/usr/bin/python2 ./waf install --destdir="${pkgdir}"
|
||
|
}
|