Add license

This commit is contained in:
2025-05-10 11:32:29 +03:00
parent 2a23b57cf5
commit 4068d3cbb9
3 changed files with 16 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Github repository
REPO="rhboot/efibootmgr"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Get version number from tag name
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
echo "$VERSION"
+1 -1
View File
@@ -1,7 +1,7 @@
name: efibootmgr name: efibootmgr
description: Utility to modify the UEFI Boot manager description: Utility to modify the UEFI Boot manager
version: 18 version: 18
revision: 2 revision: 3
url: https://github.com/rhboot/efibootmgr url: https://github.com/rhboot/efibootmgr
license: GPL2-or-later license: GPL2-or-later
architecture: any architecture: any
+3
View File
@@ -22,4 +22,7 @@ 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 EFIDIR=tide DESTDIR="$BPM_OUTPUT" install make EFIDIR=tide DESTDIR="$BPM_OUTPUT" install
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/efibootmgr/COPYING
} }