# Template build file for 'libSM'.
pkgname=libSM
version=1.2.1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libuuid-devel libICE-devel"
short_desc="X Session Management Library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="http://xorg.freedesktop.org/"
distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2"
checksum=93c11d569c64f40723b93b44af1efb474a0cfe92573b0c8c330343cabb897f1d

libSM-devel_package() {
	depends="xproto libICE-devel libSM>=${version}"
	short_desc="${short_desc} -- development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove usr/lib/pkgconfig
		vmove usr/share/doc
	}
}

libSM_package() {
	pkg_install() {
		vmove usr
	}
}
