From e0b9f5f8bf9d69d022b3a2f76d8f509ec53b54ca Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 8 May 2025 21:36:00 +0300 Subject: [PATCH] Add license --- check-version.sh | 9 +++++++++ pkg.info | 1 + source.sh | 5 +++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..1a2f059 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Gitea repository +REPO="bubble-package-manager/bpm-utils" + +# Get version from tag name using Gitea Rest API +VERSION=$(curl -s -L https://git.enumerated.dev/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name) + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 25c5c61..48cdbb4 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,7 @@ name: bpm-utils description: Package utilities for the Bubble Package Manager version: 6.0.0 +revision: 2 url: https://gitlab.com/bubble-package-manager/bpm-utils license: MIT architecture: any diff --git a/source.sh b/source.sh index 9553b3d..296298b 100644 --- a/source.sh +++ b/source.sh @@ -16,11 +16,12 @@ prepare() { package() { install -d "$BPM_OUTPUT"/etc/bpm-utils/ install -d "$BPM_OUTPUT"/usr/bin/ - install -d "$BPM_OUTPUT"/usr/share/licenses/bpm-utils install -Dm755 bpm-package "$BPM_OUTPUT"/usr/bin/bpm-package install -Dm755 bpm-convert "$BPM_OUTPUT"/usr/bin/bpm-convert install -Dm755 bpm-setup "$BPM_OUTPUT"/usr/bin/bpm-setup install -Dm755 create-repository-data "$BPM_OUTPUT"/usr/bin/create-repository-data install -Dm755 source.default "$BPM_OUTPUT"/etc/bpm-utils/source.default - install -Dm755 LICENSE "$BPM_OUTPUT"/usr/share/licenses/bpm-utils + + # Install package license + install -Dm755 LICENSE "$BPM_OUTPUT"/usr/share/licenses/bpm-utils/LICENSE }