--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/leafpad
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/applications/
+-rw-r--r-- root/root usr/share/applications/leafpad.desktop
+drwxr-xr-x root/root usr/share/icons/
+drwxr-xr-x root/root usr/share/icons/hicolor/
+drwxr-xr-x root/root usr/share/icons/hicolor/16x16/
+drwxr-xr-x root/root usr/share/icons/hicolor/16x16/apps/
+-rw-r--r-- root/root usr/share/icons/hicolor/16x16/apps/leafpad.png
+drwxr-xr-x root/root usr/share/icons/hicolor/22x22/
+drwxr-xr-x root/root usr/share/icons/hicolor/22x22/apps/
+-rw-r--r-- root/root usr/share/icons/hicolor/22x22/apps/leafpad.png
+drwxr-xr-x root/root usr/share/icons/hicolor/24x24/
+drwxr-xr-x root/root usr/share/icons/hicolor/24x24/apps/
+-rw-r--r-- root/root usr/share/icons/hicolor/24x24/apps/leafpad.png
+drwxr-xr-x root/root usr/share/icons/hicolor/32x32/
+drwxr-xr-x root/root usr/share/icons/hicolor/32x32/apps/
+-rw-r--r-- root/root usr/share/icons/hicolor/32x32/apps/leafpad.png
+drwxr-xr-x root/root usr/share/icons/hicolor/scalable/
+drwxr-xr-x root/root usr/share/icons/hicolor/scalable/apps/
+-rw-r--r-- root/root usr/share/icons/hicolor/scalable/apps/leafpad.svg
+drwxr-xr-x root/root usr/share/pixmaps/
+-rw-r--r-- root/root usr/share/pixmaps/leafpad.png
+-rw-r--r-- root/root usr/share/pixmaps/leafpad.xpm
--- /dev/null
+# Description: GTK+ based simple text editor.
+# URL: http://tarot.freeshell.org/leafpad
+# Maintainer: Victor Martinez, pitillo at ono dot com
+# Arch Maintainer System Team devel at crux-arm dot nu
+# Depends on: gtk
+
+name=leafpad
+version=0.8.17
+release=1
+source=(http://savannah.nongnu.org/download/$name/$name-$version.tar.gz)
+
+build() {
+ export DEFAULT_LIBS="-L$CLFS/usr/lib"
+ export DEFAULT_CFLAGS="-I$CLFS/usr/include"
+
+ export GTK_LIBS="$DEFAULT_LIBS -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangoft2-1.0 -lgio-2.0 -latk-1.0 -lglib-2.0 -lcairo"
+ export GTK_CFLAGS="$DEFAULT_CFLAGS/gtk-2.0 $DEFAULT_CFLAGS/gdk-2.0 -I$CLFS/usr/lib/gtk-2.0/include $DEFAULT_CFLAGS/pango-1.0 $DEFAULT_CFLAGS/gio-unix-2.0 $DEFAULT_CFLAGS/atk-1.0 $DEFAULT_CFLAGS/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include $DEFAULT_CFLAGS/cairo"
+
+ cd $name-$version
+ sed "s@SUBDIRS = src data po@SUBDIRS = src data@g" -i Makefile.in
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --enable-chooser
+ make
+ make DESTDIR=$PKG install
+}