commit e68bac50e7484dd3c7ce45d21765d1b0b8dec51f Author: EnumDev Date: Sun Jan 18 13:24:38 2026 +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..b46840b --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitlab repository +REPO="installer-team/console-setup" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +VERSION=$(curl -s -L https://salsa.debian.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..e9c2713 --- /dev/null +++ b/pkg.info @@ -0,0 +1,16 @@ +name: ckbcomp +description: Compile a XKB keyboard description to a keymap suitable for loadkeys or kbdcontrol +version: "1.224" +revision: 1 +url: https://salsa.debian.org/installer-team/console-setup +license: GPL2-or-later +architecture: any +output_architecture: any +type: source +depends: + - perl +downloads: + - url: https://salsa.debian.org/installer-team/console-setup/-/archive/${BPM_PKG_VERSION}/console-setup-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: d09f11d01cb8b899fa3e960e2d63b6957c3ab9b0b1114507a8ddf3e296c096a2 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..566cb5e --- /dev/null +++ b/source.sh @@ -0,0 +1,12 @@ +# 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 package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + install -Dm755 "$BPM_SOURCE"/Keyboard/ckbcomp "$BPM_OUTPUT"/usr/bin/ckbcomp + + # Install package license + install -Dm644 "$BPM_SOURCE"/debian/copyright "$BPM_OUTPUT"/usr/share/licenses/ckbcomp/copyright +}