new: migrated more packages

This commit is contained in:
ngn
2024-07-27 00:56:23 +03:00
parent 2b4d7c7d6e
commit 4b1ee5d9b2
36 changed files with 328 additions and 4 deletions

3
src/nano/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/nano/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 8.1
First version

28
src/nano/pkg.sh Normal file
View File

@ -0,0 +1,28 @@
# general info
NAME="nano"
DESC="A small, simple text editor which aims to replace Pico"
VERSION="8.1"
# required files
FILES=("https://www.nano-editor.org/dist/v8/nano-${VERSION}.tar.xz")
HASHES=("93b3e3e9155ae389fe9ccf9cb7ab380eac29602835ba3077b22f64d0f0cbe8cb")
# install and build depends
DEPENDS=("ncurses" "file" "glibc")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.xz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-utf8 \
--docdir="/usr/share/doc/nano-${VERSION}"
make
make DESTDIR="${ROOTDIR}" install
install -v -m644 doc/{nano.html,sample.nanorc} "${ROOTDIR}/usr/share/doc/nano-${VERSION}"
cd .. && rm -r "${NAME}-${VERSION}"
}