# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxdmcp
version=1.1.3
build=2sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXdmcp-$version.tar.bz2"
desc="X11 Display Manager Control Protocol library"
requires="xorgproto xorg-macros"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
2892aba3f822c78f69efbe4ce5e1a5805ef04103ab55f3b12b52102cdfb1ac335a405041c9620188e7a462c80727d884c52e02622f49d30350497595e8b8a57c  libXdmcp-1.1.3.tar.lz
"
