Add license
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Github repository
|
||||
REPO="libcheck/check"
|
||||
|
||||
# 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: check
|
||||
description: C unit testing framework
|
||||
version: 0.15.2
|
||||
revision: 2
|
||||
revision: 3
|
||||
url: https://libcheck.github.io/check
|
||||
license: LGPL
|
||||
architecture: any
|
||||
|
||||
@@ -29,4 +29,7 @@ check() {
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
make docdir=/usr/share/doc/check DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING.LESSER "$BPM_OUTPUT"/usr/share/licenses/check/COPYING.LESSER
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user