app=pixman
version=0.40.0
build=1sml
homepage="https://cgit.freedesktop.org/pixman/"
download="https://xorg.freedesktop.org/releases/individual/lib/pixman-$version.tar.xz"
desc="The pixel-manipulation library for X and cairo"
requires="libpng"

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

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

  mkdir -p smbuild && cd smbuild 
  meson .. --prefix="/" 

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
8a60edb113d68791b41bd90b761ff7b3934260cb3dada3234c9351416f61394e4157353bc4d61b8f6c2c619de470f6feefffb4935bfcf79d291ece6285de7270  pixman-0.40.0.tar.xz
"
