--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/X11/
+drwxr-xr-x root/root usr/include/X11/SM/
+-rw-r--r-- root/root usr/include/X11/SM/SM.h
+-rw-r--r-- root/root usr/include/X11/SM/SMlib.h
+-rw-r--r-- root/root usr/include/X11/SM/SMproto.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libSM.a
+-rwxr-xr-x root/root usr/lib/libSM.la
+lrwxrwxrwx root/root usr/lib/libSM.so -> libSM.so.6.0.1
+lrwxrwxrwx root/root usr/lib/libSM.so.6 -> libSM.so.6.0.1
+-rwxr-xr-x root/root usr/lib/libSM.so.6.0.1
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/sm.pc
--- /dev/null
+6889a455496aaaa65b1fa05fc518d179 libSM-1.1.1.tar.bz2
--- /dev/null
+# Description: X Session Management client library
+# URL: http://xorg.freedesktop.org
+# Maintainer: Tilman Sauerbeck tilman at crux dot nu
+# Arch Maintainer System Team crux-arm at mikeux dot dyndns dot org
+# Depends on: xorg-libice xorg-xproto xorg-xtrans
+
+name=xorg-libsm
+version=1.1.1
+release=1
+source=(http://xorg.freedesktop.org/releases/individual/lib/libSM-$version.tar.bz2)
+
+build() {
+ cd libSM-$version
+
+ export DEFAULT_LIBS="-L$CLFS/lib -L$CLFS/usr/lib -L$CLFS/usr/lib/xorg -L$CLFS/usr/lib/xorg/modules"
+ export DEFAULT_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions"
+ export XTRANS_LIBS="$DEFAULT_LIBS"
+ export XTRANS_CFLAGS="$DEFAULT_CFLAGS -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT"
+ export SM_LIBS="$DEFAULT_LIBS -lICE"
+ export SM_CFLAGS="$DEFAULT_CFLAGS -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT"
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr
+
+ make
+ make DESTDIR=$PKG install
+}