commit 38553be47f45849bef41d9dd238409706e439c87 Author: EnumDev Date: Mon Jun 16 21:07:59 2025 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..542a805 --- /dev/null +++ b/pkg.info @@ -0,0 +1,8 @@ +name: typer +description: A simple and easy to use text editor written in Go +version: 0.2.0 +url: https://github.com/EnumeratedDev/Typer +license: MIT +architecture: any +make_depends: ["git","golang","make","sh","which"] +type: source diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..b6e98d3 --- /dev/null +++ b/source.sh @@ -0,0 +1,26 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# 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 +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install + + install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/stormfetch/LICENSE +}