# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxcomposite
version=0.4.6
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXcomposite-$version.tar.xz"
desc="X11 Composite extension library"
requires="libxfixes"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
f35a0da8f9f22fd788eee01209557fe3a1b1abdc9744f76330ba42b21b6e3af5464ca4451c33415856417c30da5aa5624e3707980c644327249bfeda5a62a59b  libXcomposite-0.4.6.tar.xz
"
