# Maintainer: PktSurf <smlinux@pktsurf.in>
app=py3cairo
version=1.20.0
build=1sml
homepage="http://cairographics.org/pycairo/"
download="https://github.com/pygobject/pycairo/archive/refs/tags/v$version.tar.gz"
desc="Python 3.x bindings for cairo"
requires="python3 gtk3"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf pycairo-$version

  tar xf $srcdir/pycairo-$version.tar.?z*
  cd pycairo-$version
  fixbuilddirpermissions
}

build() {
  python3 setup.py install --prefix= --root=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
1aec7204fa29bbec4c563e36c8a64855d557241f2f0410a345d60198bdd9292eee873e33014a1b5bd0b8c64fd7597b22475646f35a37a2ce15f8cdc4e15b7556  pycairo-1.20.0.tar.lz
"
