epkgs-x86-musl/nano

71 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2023-02-16 10:57:48 -05:00
#
# 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"
2023-03-01 11:24:53 -05:00
SOURCES=("nano-7.2.tar.xz" "nano-7.2")
2023-02-16 10:57:48 -05:00
# Installation
getsource() {
wget $PACKAGE_SRC
2023-03-01 11:24:53 -05:00
tar xf ${SOURCES[1]}
2023-02-16 10:57:48 -05:00
}
buildpkg() {
2023-03-08 12:17:33 -05:00
cd ${SOURCES[2]}
2023-02-16 10:57:48 -05:00
./configure --prefix=/usr \
--enable-utf8
make ${MAKEFLAGS} ${CFLAGS} ${CXXFLAGS} # these MUST be set
}
installpkg() {
2023-02-23 20:54:17 -05:00
make install && install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-${PACKAGE_VER}
2023-02-16 10:57:48 -05:00
# Never install files to /bin, they will get
# overwritten when the user pulls a new update
}
installpkg_system() {
2023-02-23 20:54:17 -05:00
DESTDIR="/" make install && install -v -m644 doc/{nano.html,sample.nanorc} /share/doc/nano-${PACKAGE_VER}
2023-02-16 10:57:48 -05:00
}
removepkg() {
2023-02-23 20:54:17 -05:00
rm /usr/bin/nano
rm -rf /usr/share/doc/nano-${PACKAGE_VER}
2023-02-16 10:57:48 -05:00
}
removepkg_system() {
2023-02-23 20:54:17 -05:00
rm /bin/nano
rm -rf /share/doc/nano-${PACKAGE_VER}
2023-02-16 10:57:48 -05:00
}
updatepkg() {
buildpkg "$@"
installpkg "$@"
}
updatepkg_system() {
2023-02-23 20:54:17 -05:00
buildpkg "$@"
installpkg_system "$@"
}
2023-02-16 10:57:48 -05:00
#
# end nano
#