This commit is contained in:
Liam Waldron 2023-02-16 10:57:48 -05:00
commit 79ec4abdc2

64
world/nano Normal file
View File

@ -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
#