Add license
This commit is contained in:
@@ -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,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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user