# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libice
version=1.0.10
build=2sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/releases/individual/lib/libICE-$version.tar.bz2"
desc="X11 Inter-Client Exchange library"
requires="xorgproto xorg-macros xtrans"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
1bd4aded1a065a138bc885048e80d6efe206dab39c40e0bfa56f6b3ccfc1c2fcf439aa1e0fdd0bdfad1c3e8dc7b464c93551178971649a94cfc70b35df6313d9  libICE-1.0.10.tar.lz
"
