commit 493f8cc1f525f3ab05511d07eed00d64a5a384c8 Author: EnumDev Date: Wed Nov 12 13:05:37 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..191d023 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Git repository +REPO="https://git.kernel.org/pub/scm/libs/ell/ell.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | tail -1 | cut -d'/' -f3) + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..245c7ec --- /dev/null +++ b/pkg.info @@ -0,0 +1,20 @@ +name: ell +description: Embedded Linux library +version: "0.80" +revision: 1 +url: https://git.kernel.org/pub/scm/libs/ell/ell.git/ +license: LGPL2.1-or-later +architecture: any +type: source +depends: + - gcc-libs + - glibc +make_depends: + - dbus + - procps-ng + - udev +downloads: + - url: https://mirrors.edge.kernel.org/pub/linux/libs/ell/ell-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 6efc70ae6d3e2ca1ec255ecd855a3d5fadefe59897f4307816e3ba7a771f3d00 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..6fdd4ba --- /dev/null +++ b/source.sh @@ -0,0 +1,25 @@ +# 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() { + ./configure --prefix=/usr + make +} + +# The check function is executed in the source directory +# This function is used to run tests to verify the package has been compiled correctly +check() { + make check +} + +# 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" install + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/ell/COPYING +}