# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxrender
version=0.9.10
build=2sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXrender-$version.tar.bz2"
desc="X Rendering Extension client library"
requires="libx11"

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

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

build() {
  CFLAGS="$CFLAGS -DHAVE__XEATDATAWORDS=1" \
  ./configure \
    --prefix="" \
    --docdir="/share/doc/$app-$version" \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
55eb43e88be08140b4bdb6fe22d239238712ee293734d1e21789a575366c47c4f05828f6b4e75da288525ddd0a9d168c29d6968680dfa444d118a0b5c418da1b  libXrender-0.9.10.tar.lz
"
