# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxdamage
version=1.1.6
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXdamage-$version.tar.gz"
desc="X11 damaged region extension library"
requires="libxfixes"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
0ec8a9250cbe8853bee05024e5fe7dbe8619e3f39894f47f9bbb16c3a3cd8a1c1921dfda14b4c2276d4034cdbe9dd2cc87513c37b55b5e55cbc6ce6318530016  libXdamage-1.1.6.tar.lz
"
