summaryrefslogtreecommitdiff
path: root/data/nano
diff options
context:
space:
mode:
Diffstat (limited to 'data/nano')
-rw-r--r--data/nano/make.sh6
-rwxr-xr-xdata/nano/nano.sh1
2 files changed, 5 insertions, 2 deletions
diff --git a/data/nano/make.sh b/data/nano/make.sh
index 4b04980d0..cfdb36162 100644
--- a/data/nano/make.sh
+++ b/data/nano/make.sh
@@ -1,5 +1,7 @@
-tar -zxvf "${PKG_DATA}/nano-2.0.7.tar.gz"
-cd nano-2.0.7
+pkg:extract
+cd *
pkg:configure
make
pkg:install
+pkg: mkdir -p /etc/profile.d
+pkg: cp -a %/nano.sh /etc/profile.d
diff --git a/data/nano/nano.sh b/data/nano/nano.sh
new file mode 100755
index 000000000..9e0db0f05
--- /dev/null
+++ b/data/nano/nano.sh
@@ -0,0 +1 @@
+export EDITOR=nano