Add license

This commit is contained in:
2025-05-08 21:31:34 +03:00
parent 9c0d62b198
commit cb4b77bb5e
3 changed files with 12 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# Gitea repository
REPO="bubble-package-manager/bpm"
# 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"
+1
View File
@@ -1,6 +1,7 @@
name: bpm name: bpm
description: A simple Linux package manager description: A simple Linux package manager
version: 0.4.1 version: 0.4.1
revision: 2
url: https://gitlab.com/bubble-package-manager/bpm url: https://gitlab.com/bubble-package-manager/bpm
license: MIT license: MIT
architecture: any architecture: any
+2
View File
@@ -20,4 +20,6 @@ build() {
# 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() {
make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/bpm/LICENSE
} }