--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/enchant
+-rwxr-xr-x root/root usr/bin/enchant-lsmod
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/enchant/
+-rw-r--r-- root/root usr/include/enchant/enchant++.h
+-rw-r--r-- root/root usr/include/enchant/enchant-provider.h
+-rw-r--r-- root/root usr/include/enchant/enchant.h
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/enchant/
+-rwxr-xr-x root/root usr/lib/enchant/libenchant_aspell.la
+-rwxr-xr-x root/root usr/lib/enchant/libenchant_aspell.so
+-rwxr-xr-x root/root usr/lib/enchant/libenchant_ispell.la
+-rwxr-xr-x root/root usr/lib/enchant/libenchant_ispell.so
+-rwxr-xr-x root/root usr/lib/enchant/libenchant_myspell.la
+-rwxr-xr-x root/root usr/lib/enchant/libenchant_myspell.so
+-rwxr-xr-x root/root usr/lib/libenchant.la
+lrwxrwxrwx root/root usr/lib/libenchant.so -> libenchant.so.1.4.2
+lrwxrwxrwx root/root usr/lib/libenchant.so.1 -> libenchant.so.1.4.2
+-rw-r--r-- root/root usr/lib/libenchant.so.1.4.2
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/enchant.pc
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/enchant.1.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/enchant/
+-rw-r--r-- root/root usr/share/enchant/enchant.ordering
--- /dev/null
+# Description: Generic Spell Checking Library.
+# URL: http://www.abisource.com/enchant/
+# Packager: James Mills, prologic at shortcircuit dot net dot au
+# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
+# Arch Maintainer System Team devel at crux-arm dot nu
+# Depends on: aspell glib
+
+name=enchant
+version=1.4.2
+release=1
+source=(http://www.abisource.com/downloads/enchant/$version/enchant-$version.tar.gz)
+
+build() {
+ cd enchant-$version
+ export DEFAULT_LIBS="-L$CLFS/usr/lib"
+ export DEFAULT_CFLAGS="-I$CLFS/usr/include"
+ export GLIB_LIBS="-pthread -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0"
+ export GLIB_CFLAGS="-pthread -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include -I$CLFS/usr/include/gio-unix-2.0"
+ export ENCHANT_LIBS="$DEFAULT_LIBS $GLIB_LIBS"
+ export ENCHANT_CFLAGS="$DEFAULT_CFLAGS $GLIB_CFLAGS"
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --disable-static \
+ --disable-dependency-tracking \
+ --disable-zemberek \
+ --disable-hspell \
+ --disable-uspell \
+ --disable-voikko \
+ --with-aspell-prefix=$CLFS/usr
+
+ # libtool relink change to avoid hosts libs
+ sed "s|add_dir=\"\-L\$libdir\"|add_dir=\"\-L\$CLFS\$dir\"|g" -i libtool
+ make
+ make DESTDIR=$PKG install
+ chmod a-x $PKG/usr/lib/*.so
+}
+