# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xsm
pkgver=1.0.4
pkgrel=0
pkgdesc="Session manager for X11"
url="https://www.X.Org/"
arch="all"
license="X11"
depends="iceauth smproxy twm"
makedepends="libice-dev libsm-dev libxaw-dev libxt-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/xsm-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="d4e4da7c309a4eae126d2b58a13684f4dbc06b09f76dde9c89c707375df2843614f3d83bc44f9cd02f239200db3397abd86796dca0dbafc69f60482b0af5a176  xsm-1.0.4.tar.bz2"