commit 79ec4abdc2645980f68504cc999be139191d6677 Author: Liam Waldron Date: Thu Feb 16 10:57:48 2023 -0500 init diff --git a/world/nano b/world/nano new file mode 100644 index 0000000..f93ce8b --- /dev/null +++ b/world/nano @@ -0,0 +1,64 @@ +# +# nano +# + +# Package metadata +PACKAGE_NAME="nano" +PACKAGE_VER="7.2" +PACKAGE_DESC="The GNU nano text editor" +MAINTAINER="liamwaldron@everestlinux.org" +LICENSE="GPL v3" +ARCH="x86" +INCLUDED_FILES=("/usr/bin/nano" "/usr/bin/rnano") + +# Integrity checking +SHA256SUMS="86f3442768bd2873cec693f83cdf80b4b444ad3cc14760b74361474fc87a4526" + +# Dependency information +DEPENDS=("") +CONFLICTS=("") + +# Source information +PACKAGE_SRC="https://nano-editor.org/dist/v7/nano-7.2.tar.xz" +SOURCES=("nano=7.2.tar.xz") + +# Installation +getsource() { + wget $PACKAGE_SRC +} + +buildpkg() { + ./configure --prefix=/usr \ + --enable-utf8 + make ${MAKEFLAGS} ${CFLAGS} ${CXXFLAGS} # these MUST be set +} + +installpkg() { + make install && install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-7.2 + # Never install files to /bin, they will get + # overwritten when the user pulls a new update +} + +installpkg_system() { + install example /bin +} + +removepkg() { + rm /usr/bin/example +} + +removepkg_system() { + rm /bin/example +} + +updatepkg() { + buildpkg "$@" + installpkg "$@" +} + +updatepkg_system() { + # this is a,s + +# +# end nano +#