Update package version to 2.0.2

This commit is contained in:
2026-03-21 16:10:54 +02:00
parent 68461ad431
commit 786a65abe3
3 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
REPO="mypaint/mypaint-brushes" REPO="mypaint/mypaint-brushes"
# Get tag name using Github Rest API # Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/tags | jq -r '.[].name' | grep '^v' | sort -V | tail -n1)
# Trim 'v' character in TAG_NAME variable # Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v') VERSION=$(echo "$TAG_NAME" | tr -d 'v')
+8 -1
View File
@@ -1,11 +1,18 @@
name: mypaint-brushes name: mypaint-brushes
description: Brushes used by MyPaint and other software using libmypaint description: Brushes used by MyPaint and other software using libmypaint
version: 1.3.1 version: 2.0.2
revision: 1 revision: 1
url: https://github.com/mypaint/mypaint-brushes url: https://github.com/mypaint/mypaint-brushes
license: CC0-1.0 license: CC0-1.0
maintainers:
- [email protected]
architecture: any architecture: any
output_architecture: any output_architecture: any
type: source type: source
depends: depends:
- libmypaint - libmypaint
downloads:
- url: https://github.com/mypaint/mypaint-brushes/releases/download/v${BPM_PKG_VERSION}/mypaint-brushes-${BPM_PKG_VERSION}.tar.xz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 7984a74edef94571d872d0629b224abaa956a36f632f5c5516b33d22e49eb566
+1 -10
View File
@@ -2,16 +2,6 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://github.com/mypaint/mypaint-brushes/releases/download/v${BPM_PKG_VERSION}/mypaint-brushes-${BPM_PKG_VERSION}.tar.xz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
}
# 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() {
@@ -24,5 +14,6 @@ build() {
package() { package() {
make DESTDIR="$BPM_OUTPUT" install make DESTDIR="$BPM_OUTPUT" install
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/mypaint-brushes/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/mypaint-brushes/COPYING
} }