--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/nano
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/nano.1.gz
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/nanorc.5.gz
--- /dev/null
+# Description: GNU pico clone (a tiny text editor)
+# URL: http://www.nano-editor.org
+# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
+# Packager: Simone Rota, sip at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+
+name=nano
+version=2.2.5
+release=1
+source=(http://www.nano-editor.org/dist/v2.2/$name-$version.tar.gz)
+
+build(){
+ cd $name-$version
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --disable-nls \
+ --mandir=/usr/man
+ find -type f -name 'Makefile' \
+ -exec sed -e "s|-I/usr|-I$CLFS/usr|g" -i {} \;
+ make
+ make DESTDIR=$PKG install
+ rm -r $PKG/usr/share
+ rm $PKG/usr/bin/rnano $PKG/usr/man/man1/rnano.1
+}