# Maintainer: Natanael Copa pkgname=libsm pkgver=1.2.1 pkgrel=0 pkgdesc="X11 Session Management library" url="http://xorg.freedesktop.org/" arch="all" license="custom" depends= subpackages="$pkgname-dev $pkgname-doc" makedepends="pkgconfig libice-dev e2fsprogs-dev xproto xtrans" source="http://xorg.freedesktop.org/releases/individual/lib/libSM-$pkgver.tar.bz2" depends_dev="libice-dev xproto" build () { cd "$srcdir"/libSM-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 } package() { cd "$srcdir"/libSM-$pkgver make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } md5sums="766de9d1e1ecf8bf74cebe2111d8e2bd libSM-1.2.1.tar.bz2"