app=libxpresent
version=1.0
build=1sml
homepage="https://gitlab.freedesktop.org/xorg/lib/libxpresent"
download="https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/archive/libXpresent-$version.0/libxpresent-libXpresent-$version.0.tar.bz2"
desc="X Present Extension library"
requires="libxfixes libxrandr"

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

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

  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
007cb41076b893236ede31d475ee477830aeb6b175fcbaf9ce64a41aaf3b5b8f6eb4a4d7b67bd43914f4a98dd343c50cf99268b7c1d93f7ed5f366a23e2c7fb7  libxpresent-1.0.tar.lz
"
