Add license
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Gitea repository
|
||||||
|
REPO="EnumDev/stormfetch"
|
||||||
|
|
||||||
|
# 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: stormfetch
|
name: stormfetch
|
||||||
description: A simple linux fetch program written in go and bash
|
description: A simple linux fetch program written in go and bash
|
||||||
version: 6.1
|
version: 6.1
|
||||||
|
revision: 2
|
||||||
url: https://git.enumerated.dev/EnumDev/stormfetch
|
url: https://git.enumerated.dev/EnumDev/stormfetch
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -21,4 +21,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/stormfetch/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user