app=libsm
version=1.2.3
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/releases/individual/lib/libSM-$version.tar.gz"
desc="X11 Session Management library"
requires="util-linux xorgproto xorg-macros xtrans libice"

build() {
  mkandenterbuilddir
  rm -rf libSM-$version

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

  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
9442e1fe1cc4cebf304fa1b84af60e59d10dda9486bf6aef0b338153647f2d3826d0c86a4594695718b2ffd70004ebbd4162514e163db3b2c941b5bad2470129  libSM-1.2.3.tar.xz
"
