Update package version to 1.8.0
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="mesonbuild/meson"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Get version number from tag name
|
||||||
|
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
name: meson
|
name: meson
|
||||||
description: The Meson build system
|
description: The Meson build system
|
||||||
version: 1.3.2
|
version: 1.8.0
|
||||||
revision: 2
|
|
||||||
url: https://mesonbuild.com/
|
url: https://mesonbuild.com/
|
||||||
license: Apache2
|
license: Apache2
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["ninja","python3"]
|
depends: ["ninja","python3"]
|
||||||
make_depends: ["python-setuptools","python-wheel"]
|
make_depends: ["python-build","python-installer","python-setuptools","python-wheel"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,13 +15,18 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
python3 -m build --wheel --no-isolation .
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
pip3 install --root="$BPM_OUTPUT" --ignore-installed --no-index --find-links dist meson
|
python3 -m installer --destdir "$BPM_OUTPUT" --prefix=/usr dist/*.whl
|
||||||
install -vDm644 data/shell-completions/bash/meson "$BPM_OUTPUT"/usr/share/bash-completion/completions/meson
|
|
||||||
install -vDm644 data/shell-completions/zsh/_meson "$BPM_OUTPUT"/usr/share/zsh/site-functions/_meson
|
# Install shell completions
|
||||||
|
install -Dm644 data/shell-completions/bash/meson "$BPM_OUTPUT"/usr/share/bash-completion/completions/meson
|
||||||
|
install -Dm644 data/shell-completions/zsh/_meson "$BPM_OUTPUT"/usr/share/zsh/site-functions/_meson
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/meson/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user