Add license
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="rhboot/efivar"
|
||||||
|
|
||||||
|
# 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,7 +1,7 @@
|
|||||||
name: efivar
|
name: efivar
|
||||||
description: Tools and libraries to work with EFI variables
|
description: Tools and libraries to work with EFI variables
|
||||||
version: 39
|
version: 39
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://github.com/rhboot/efivar
|
url: https://github.com/rhboot/efivar
|
||||||
license: LGPL2.1-or-later
|
license: LGPL2.1-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -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 DESTDIR="$BPM_OUTPUT" LIBDIR=/usr/lib install
|
make DESTDIR="$BPM_OUTPUT" LIBDIR=/usr/lib install
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/efivar/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user