This commit is contained in:
Liam Waldron 2023-02-23 20:54:17 -05:00
parent 79ec4abdc2
commit f3c14d2967

View File

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