commit 83f7e384194e620d45d45ff3bf9ee24859855871 Author: EnumDev Date: Tue Dec 30 19:38:22 2025 +0200 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/check-version.sh b/check-version.sh new file mode 100644 index 0000000..3ba608a --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="https://www.leonerd.org.uk/code/libvterm/" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep -o -E 'libvterm-[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?\.tar\.gz' | grep -o -E '[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?' | head -n1) + +echo "$VERSION" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..7574d59 --- /dev/null +++ b/pkg.info @@ -0,0 +1,15 @@ +name: libvterm +description: Abstract C99 library which implements a VT220 or xterm-like terminal emulator +version: 0.3.3 +revision: 1 +url: https://www.leonerd.org.uk/code/libvterm/ +license: MIT +architecture: any +type: source +depends: + - glibc +downloads: + - url: https://www.leonerd.org.uk/code/libvterm/libvterm-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 09156f43dd2128bd347cbeebe50d9a571d32c64e0cf18d211197946aff7226e0 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..0c1224e --- /dev/null +++ b/source.sh @@ -0,0 +1,18 @@ +# 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 + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + make PREFIX=/usr +} + +# 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 install + + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/libvterm/LICENSE +}