Switch to new download format

This commit is contained in:
2026-05-16 09:35:17 +03:00
parent 018e79e238
commit 2cac9975cf
3 changed files with 18 additions and 13 deletions
+4 -11
View File
@@ -2,19 +2,11 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
REPO="https://github.com/EnumeratedDev/Typer.git"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
git clone --branch "${BPM_PKG_VERSION}" "$REPO" "$BPM_SOURCE"
cd "$BPM_SOURCE"
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
GO=go make
export GOFLAGS="-modcacherw"
make
}
# The package function is executed in the source directory
@@ -22,5 +14,6 @@ build() {
package() {
make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/stormfetch/LICENSE
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/typer/LICENSE
}