new: migrated more packages
This commit is contained in:
3
src/meson/.gitignore
vendored
Normal file
3
src/meson/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.cache/
|
||||
dist/
|
||||
root/
|
2
src/meson/changes.md
Normal file
2
src/meson/changes.md
Normal file
@ -0,0 +1,2 @@
|
||||
# 1.5.0
|
||||
First version
|
25
src/meson/pkg.sh
Normal file
25
src/meson/pkg.sh
Normal 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}"
|
||||
}
|
Reference in New Issue
Block a user