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

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

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

23
src/m4/pkg.sh Normal file
View File

@ -0,0 +1,23 @@
# general info
NAME="m4"
DESC="Implementation of the traditional Unix macro processor"
VERSION="1.4.19"
# required files
FILES=("https://ftp.gnu.org/gnu/m4/m4-${VERSION}.tar.xz")
HASHES=("0d90823e1426f1da2fd872df0311298d")
# install and build depends
DEPENDS=("bash" "glibc")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.xz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

2
src/make-ca/changes.md Normal file
View File

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

29
src/make-ca/pkg.sh Normal file
View File

@ -0,0 +1,29 @@
# general info
NAME="make-ca"
DESC="PKI setup script for LFS (and others)"
VERSION="1.14"
# required files
FILES=(
"https://github.com/lfs-book/make-ca/archive/refs/tags/v${VERSION}.tar.gz"
"https://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
)
HASHES=(
"6391698fe6db16eb190da1aba802bc90c09c8baa4c116d9c65647bea87f190db"
"4c933cfd2327b2a381542f3cb6392179d5e359811f5274734e8dc7e28e587b61"
)
# install and build depends
DEPENDS=("p11-kit" "libtasn1")
BUILD=()
build(){
tar xf "v${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
make DESTDIR="${ROOTDIR}" install
install -vdm755 "${ROOTDIR}/etc/ssl/local"
install -m644 "${ROOTDIR}/certdata.txt" "${ROOTDIR}/etc/ssl"
cd .. && rm -r "${NAME}-${VERSION}"
}

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

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

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

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

23
src/make/pkg.sh Normal file
View File

@ -0,0 +1,23 @@
# general info
NAME="make"
DESC="Controls the generation of executables and other non-source files"
VERSION="4.4.1"
# required files
FILES=("https://ftp.gnu.org/gnu/make/make-${VERSION}.tar.gz")
HASHES=("c8469a3713cbbe04d955d4ae4be23eeb")
# install and build depends
DEPENDS=("glibc")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/man-db/.gitignore vendored Normal file
View File

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

2
src/man-db/changes.md Normal file
View File

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

34
src/man-db/pkg.sh Normal file
View File

@ -0,0 +1,34 @@
# general info
NAME="man-db"
DESC="Tools for reading manual pages"
VERSION="2.12.1"
# required files
FILES=("https://download-mirror.savannah.gnu.org/releases/man-db/man-db-${VERSION}.tar.xz")
HASHES=("0f79f4205ce116c3148dc6caf561c1b7d793aac234188ef8edd1b1f5aaaebcca32c65ef403dff65896920535077fb63ddc2e9cb293efdb6ef3037c33916aa329")
# install and build depends
DEPENDS=(
"bash" "gdbm" "zlib"
"groff" "libpipeline" "less"
"libseccomp" "glibc" "gzip"
)
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.xz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr \
--docdir="/usr/share/doc/man-db-${VERSION}" \
--sysconfdir=/etc \
--disable-setuid \
--enable-cache-owner=bin \
--with-browser=/usr/bin/lynx \
--with-vgrind=/usr/bin/vgrind \
--with-grap=/usr/bin/grap
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/man-pages/.gitignore vendored Normal file
View File

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

2
src/man-pages/changes.md Normal file
View File

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

35
src/man-pages/pkg.sh Normal file
View File

@ -0,0 +1,35 @@
# general info
NAME="man-pages"
DESC="Manual pages for Linux kernel and C library interfaces"
VERSION="6.9.1"
# required files
FILES=(
"https://www.kernel.org/pub/linux/docs/man-pages/man-pages-${VERSION}.tar.xz"
"https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2017-a.tar.xz"
)
HASHES=(
"e23cbac29f110ba571f0da8523e79d373691466ed7f2a31301721817d34530bd"
"ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3"
)
# install and build depends
DEPENDS=()
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.xz"
tar xf "${NAME}-posix-2017-a.tar.xz"
pushd "${NAME}-${VERSION}"
rm -v man3/crypt*
make DESTDIR="${ROOTDIR}" prefix=/usr install
popd
pushd "${NAME}-posix-2017"
make DESTDIR="${ROOTDIR}" prefix=/usr install
popd
rm -r "${NAME}-${VERSION}"
rm -r "${NAME}-posix-2017"
}

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

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

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

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

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

@ -0,0 +1,28 @@
# general info
NAME="mandoc"
DESC="UNIX manpage compiler toolset"
VERSION="1.14.6"
# required files
FILES=("https://mandoc.bsd.lv/snapshots/mandoc-${VERSION}.tar.gz")
HASHES=("f0adf24e8fdef5f3e332191f653e422a")
# install and build depends
DEPENDS=("zlib" "less")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure
make mandoc
install -dm755 "${ROOTDIR}/usr/share/man/man1"
install -dm755 "${ROOTDIR}/usr/bin"
install -vm755 mandoc "${ROOTDIR}/usr/bin"
install -vm644 mandoc.1 "${ROOTDIR}/usr/share/man/man1"
cd .. && rm -r "${NAME}-${VERSION}"
}

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

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

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

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

25
src/meson/pkg.sh Normal file
View File

@ -0,0 +1,25 @@
# general info
NAME="meson"
DESC="Open source build system meant to be both extremely fast and as user friendly as possible"
VERSION="1.5.0"
# required files
FILES=("https://github.com/mesonbuild/meson/releases/download/${VERSION}/meson-${VERSION}.tar.gz")
HASHES=("45d7b8653c1e5139df35b33be2dd5b2d040c5b2c6129f9a7c890d507e33312b8")
# install and build depends
DEPENDS=("ninja" "python3")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
python3 -m build --wheel --skip-dependency-check --no-isolation
PYTHONPATH=src python3 -m installer --destdir="${ROOTDIR}" dist/*.whl
install -vDm644 data/shell-completions/bash/meson "${ROOTDIR}/usr/share/bash-completion/completions/meson"
install -vDm644 data/shell-completions/zsh/_meson "${ROOTDIR}/usr/share/zsh/site-functions/_meson"
cd .. && rm -r "${NAME}-${VERSION}"
}

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}"
}

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

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

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

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

27
src/nettle/pkg.sh Normal file
View File

@ -0,0 +1,27 @@
# general info
NAME="nettle"
DESC="A low-level cryptographic library"
VERSION="3.10"
# required files
FILES=("https://ftp.gnu.org/gnu/nettle/nettle-${VERSION}.tar.gz")
HASHES=("b4c518adb174e484cb4acea54118f02380c7133771e7e9beb98a0787194ee47c")
# install and build depends
DEPENDS=("glibc" "gmp")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr --disable-static
make
make DESTDIR="${ROOTDIR}" install
chmod -v 755 "${ROOTDIR}/usr/lib/lib"{hogweed,nettle}.so
install -v -m755 -d "${ROOTDIR}/usr/share/doc/nettle-${VERSION}"
install -v -m644 nettle.{html,pdf} "${ROOTDIR}/usr/share/doc/nettle-${VERSION}"
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/pypi-flit-core/.gitignore vendored Normal file
View File

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

View File

@ -1,5 +1,5 @@
# general info # general info
NAME="flit-core" NAME="pypi-flit-core"
DESC="Distribution-building parts of Flit" DESC="Distribution-building parts of Flit"
VERSION="3.9.0" VERSION="3.9.0"

3
src/pypi-jinja2/.gitignore vendored Normal file
View File

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

View File

@ -1,5 +1,5 @@
# general info # general info
NAME="jinja2" NAME="pypi-jinja2"
DESC="Fast, expressive, extensible templating engine" DESC="Fast, expressive, extensible templating engine"
VERSION="3.1.3" VERSION="3.1.3"
@ -8,8 +8,8 @@ FILES=("https://pypi.org/packages/source/J/Jinja2/Jinja2-${VERSION}.tar.gz")
HASHES=("caf5418c851eac59e70a78d9730d4cea") HASHES=("caf5418c851eac59e70a78d9730d4cea")
# install and build depends # install and build depends
DEPENDS=("python3" "markupsafe") DEPENDS=("python3" "pypi-markupsafe")
BUILD=("flit-core") BUILD=("pypi-flit-core")
build(){ build(){
tar xf "Jinja2-${VERSION}.tar.gz" tar xf "Jinja2-${VERSION}.tar.gz"

3
src/pypi-markupsafe/.gitignore vendored Normal file
View File

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

View File

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

View File

@ -0,0 +1,22 @@
# general info
NAME="pypi-markupsafe"
DESC="Implements a text object that escapes characters so it is safe to use in HTML and XML"
VERSION="2.1.5"
# required files
FILES=("https://pypi.org/packages/source/M/MarkupSafe/MarkupSafe-${VERSION}.tar.gz")
HASHES=("8fe7227653f2fb9b1ffe7f9f2058998a")
# install and build depends
DEPENDS=()
BUILD=()
build(){
tar xf "MarkupSafe-${VERSION}.tar.gz"
cd "MarkupSafe-${VERSION}"
python3 -m build --wheel --skip-dependency-check --no-isolation
PYTHONPATH=src python3 -m installer --destdir="${ROOTDIR}" dist/*.whl
cd .. && rm -r "MarkupSafe-${VERSION}"
}