From 786a65abe34aa20152c98ad914e6872d5c1290b1 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 21 Mar 2026 16:10:54 +0200 Subject: [PATCH] Update package version to 2.0.2 --- check-version.sh | 2 +- pkg.info | 9 ++++++++- source.sh | 11 +---------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/check-version.sh b/check-version.sh index 0be336c..8317f8d 100644 --- a/check-version.sh +++ b/check-version.sh @@ -4,7 +4,7 @@ REPO="mypaint/mypaint-brushes" # 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 VERSION=$(echo "$TAG_NAME" | tr -d 'v') diff --git a/pkg.info b/pkg.info index 7c02989..1ce5223 100644 --- a/pkg.info +++ b/pkg.info @@ -1,11 +1,18 @@ name: mypaint-brushes description: Brushes used by MyPaint and other software using libmypaint -version: 1.3.1 +version: 2.0.2 revision: 1 url: https://github.com/mypaint/mypaint-brushes license: CC0-1.0 +maintainers: + - enumdev@enumerated.dev architecture: any output_architecture: any type: source depends: - 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 diff --git a/source.sh b/source.sh index 3e880c3..8e54eba 100644 --- a/source.sh +++ b/source.sh @@ -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 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 # This function is used to compile the source code build() { @@ -24,5 +14,6 @@ build() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/mypaint-brushes/COPYING }