From 4068d3cbb97bd29effa672d149b892bc0ac9f503 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 10 May 2025 11:32:29 +0300 Subject: [PATCH] Add license --- check-version.sh | 12 ++++++++++++ pkg.info | 2 +- source.sh | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..f30cc1a --- /dev/null +++ b/check-version.sh @@ -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" diff --git a/pkg.info b/pkg.info index c57d1b7..caf331a 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: efibootmgr description: Utility to modify the UEFI Boot manager version: 18 -revision: 2 +revision: 3 url: https://github.com/rhboot/efibootmgr license: GPL2-or-later architecture: any diff --git a/source.sh b/source.sh index 700bcac..fd8637f 100644 --- a/source.sh +++ b/source.sh @@ -22,4 +22,7 @@ build() { # This function is used to move the compiled files into the output directory package() { make EFIDIR=tide DESTDIR="$BPM_OUTPUT" install + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/efibootmgr/COPYING }