# Maintainer: PktSurf <smlinux@pktsurf.in>
app=cairo
version=1.17.6
build=1sml
homepage="https://cairographics.org/"
download="https://cairographics.org/releases/cairo-$version.tar.xz"
desc="2D graphics library with support for multiple output devices"
requires="glib expat util-linux lzo pixman dejavu-fonts-ttf libxext libxrender libxcb freetype"

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

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

build() {
  ./configure \
    --prefix= \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
329f1492b4c1e9aae23eaffe87dae817bfac213211aef5863ae78c50fbe2ffb235fa6fdcd1bdad58d9d37e924a504d8c21ceb10da15c6098dd3096bf781fe051  cairo-1.17.6.tar.lz
"
