aboutsummaryrefslogblamecommitdiffstats
path: root/main/py-cairo/APKBUILD
blob: e2afad82d217dac68eca0506e77507bdb61198dc (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                   


                 

                                                        
          

                
                                   
          
                          
                                                                    
 
                                     





                       
                                                 

                               





                                           



                       


                                                                     

 
                                                                   
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-cairo
_pkgname=py2cairo
pkgver=1.10.0
pkgrel=0
pkgdesc="Python bindings for the cairo graphics library"
url="http://cairographics.org/pycairo/"
arch="all"
license="LGPL2+"
depends=""
makedepends="python2-dev cairo-dev"
install=""
subpackages="$pkgname-dev"
source="http://cairographics.org/releases/$_pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./waf configure --prefix=/usr || return 1
#	./configure \
#		--prefix=/usr \
#		--sysconfdir=/etc \
#		--mandir=/usr/share/man \
#		--infodir=/usr/share/info \
#		|| return 1
#	make || return 1
	./waf build || return 1
}

package() {
	cd "$_builddir"
	./waf install --destdir="${pkgdir}" || return 1
#	make DESTDIR="$pkgdir" install || return 1
#	rm -f "$pkgdir"/usr/lib/python*/site-packages/cairo/_cairo.la
}

md5sums="20337132c4ab06c1146ad384d55372c5  py2cairo-1.10.0.tar.bz2"