APP=pixman
VERSION=0.40.0
BUILD=1sml
HOMEPAGE="https://cgit.freedesktop.org/pixman/"
DOWNLOAD="https://xorg.freedesktop.org/releases/individual/lib/pixman-0.40.0.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
"
