From f3c14d2967cc665f70378a6feb51f2bfb3b4d4ff Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Thu, 23 Feb 2023 20:54:17 -0500 Subject: [PATCH] fix nano --- world/nano | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/world/nano b/world/nano index f93ce8b..3f1893b 100644 --- a/world/nano +++ b/world/nano @@ -34,21 +34,23 @@ buildpkg() { } installpkg() { - make install && install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-7.2 + make install && install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-${PACKAGE_VER} # Never install files to /bin, they will get # overwritten when the user pulls a new update } installpkg_system() { - install example /bin + DESTDIR="/" make install && install -v -m644 doc/{nano.html,sample.nanorc} /share/doc/nano-${PACKAGE_VER} } removepkg() { - rm /usr/bin/example + rm /usr/bin/nano + rm -rf /usr/share/doc/nano-${PACKAGE_VER} } removepkg_system() { - rm /bin/example + rm /bin/nano + rm -rf /share/doc/nano-${PACKAGE_VER} } updatepkg() { @@ -57,7 +59,9 @@ updatepkg() { } updatepkg_system() { - # this is a,s + buildpkg "$@" + installpkg_system "$@" +} # # end nano