Initial commit

This commit is contained in:
2025-12-30 19:38:22 +02:00
commit 83f7e38419
4 changed files with 43 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Exclude bpm archives
*.bpm
+8
View File
@@ -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"
+15
View File
@@ -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
+18
View File
@@ -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
}