diff --git a/packages/tools/nano/build b/packages/tools/nano/build
deleted file mode 100755
index f66894a547..0000000000
--- a/packages/tools/nano/build
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses"
-LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
-LDFLAGS="$LDFLAGS -ltinfo"
-
-cd $PKG_BUILD
-./configure --host=$TARGET_NAME \
- --build=$HOST_NAME \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
-
-make
diff --git a/packages/tools/nano/install b/packages/tools/nano/install
deleted file mode 100755
index 212e4d51d2..0000000000
--- a/packages/tools/nano/install
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-
-mkdir -p $INSTALL/usr/bin
- cp $PKG_BUILD/src/nano $INSTALL/usr/bin
diff --git a/packages/tools/nano/meta b/packages/tools/nano/package.mk
similarity index 83%
rename from packages/tools/nano/meta
rename to packages/tools/nano/package.mk
index 5bd1ba6d24..8c65b49397 100644
--- a/packages/tools/nano/meta
+++ b/packages/tools/nano/package.mk
@@ -24,7 +24,7 @@ PKG_LICENSE="GPL"
PKG_SITE="http://www.nano-editor.org/"
PKG_URL="http://ftp.gnu.org/gnu/nano/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="ncurses"
-PKG_BUILD_DEPENDS="toolchain ncurses"
+PKG_BUILD_DEPENDS_TARGET="toolchain ncurses"
PKG_PRIORITY="optional"
PKG_SECTION="shell/texteditor"
PKG_SHORTDESC="nano: Pico editor clone with enhancements"
@@ -32,3 +32,11 @@ PKG_LONGDESC="GNU nano (Nano's ANOther editor, or Not ANOther editor) is an enha
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
+
+export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses"
+export LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
+export LDFLAGS="$LDFLAGS -ltinfo"
+
+post_makeinstall_target() {
+ rm -rf $INSTALL/usr/share/nano/man-html
+}