From d0d88051b6186af9b3769d8b485cd3adeccd70f9 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 6 Jan 2026 09:33:40 +0200 Subject: [PATCH] Initial Commit --- .gitignore | 2 ++ pkg.info | 23 +++++++++++++++++++++++ source.sh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .gitignore create mode 100644 pkg.info create mode 100644 source.sh 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..cc67e98 --- /dev/null +++ b/pkg.info @@ -0,0 +1,23 @@ +name: ddcutil +description: Query and change Linux monitor settings using DDC/CI and USB +version: 2.2.1 +revision: 1 +url: http://ddcutil.com/ +license: GPL2-or-later +architecture: any +type: source +depends: + - glib + - jansson + - libdrm + - libusb + - libx11 + - libxext + - libxrandr +make_depends: + - udev +downloads: + - url: https://github.com/rockowitz/ddcutil/archive/v${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: ff8eb39b4559fcbc83de7b16834a010262dfa825938625272212fcaeefaef692 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..c028bbe --- /dev/null +++ b/source.sh @@ -0,0 +1,32 @@ +# 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 prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + NOCONFIGURE=1 ./autogen.sh +} + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr --disable-build-timestamp + 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/ddcutil/COPYING +}