pkgname=libXrender
pkgver=0.9.12
pkgdesc="X Rendering Extension client library"
arch=('x86_64')
homepage="https://xorg.freedesktop.org/"
license=('HPND-sell-variant')
depends=('libx11' 'glibc' 'xorg-proto')
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://xorg.freedesktop.org/releases/individual/lib/${sources[0]}")
md5sums=("4b81179b01ce9aaf108e73112e719aa9")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  local conf_args=(
    --prefix=/usr
    --disable-static
  )
  ./configure "${conf_args[@]}"
  make
}

src_install() {
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}

# vim:ft=sh syn=sh et sw=2:
