1 # Contributor: Chuck Yang <Chuck dot Yang at gmail dot com>
3 pkgname=python2-cairoplot
7 pkgdesc="Python API to plot graphics"
9 url="http://launchpad.net/cairoplot"
11 depends=('python2' 'python2-cairo')
12 replaces=('python-cairoplot')
13 source=(http://launchpad.net/$_pkgname/$pkgver/$pkgver/+download/$_pkgname-$pkgver.tar.gz
15 md5sums=('0863d4495d2764e31b033db52de7af3e'
16 '78ac81b245e47a2ee1ddf2aeca743cb1')
19 cd "${srcdir}/${_pkgname}-${pkgver}"
20 patch -Np1 -i ${srcdir}/cairoplot.patch || { echo -e "Failed to apply patch" ; return 1 ; }
22 install -Dm644 CairoPlot.py ${pkgdir}/usr/lib/python2.7/site-packages/CairoPlot.py || return 1