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