From 747f1157e2bab12e199915088d165c199e4b65cb Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 4 Dec 2025 16:23:21 +0200 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ pkg.info | 20 ++++++++++++++++++++ source.sh | 27 +++++++++++++++++++++++++++ 3 files changed, 49 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..1bb9719 --- /dev/null +++ b/pkg.info @@ -0,0 +1,20 @@ +name: cups-browsed +description: Helper daemon to browse the network for remote CUPS queues and IPP network printers +version: 2.1.1 +revision: 1 +url: https://wiki.linuxfoundation.org/openprinting/cups-filters +license: Apache-2.0 WITH LLVM-exception +architecture: any +type: source +depends: + - avahi + - glib + - glibc + - libcups + - libcupsfilters + - libppd +downloads: + - url: https://github.com/OpenPrinting/cups-browsed/releases/download/${BPM_PKG_VERSION}/cups-browsed-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: d185169a74e6a5731b6bd74cba8d269f34e5c71cb71ef1841f2fa91637ba1d58 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..300afbf --- /dev/null +++ b/source.sh @@ -0,0 +1,27 @@ +# 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 \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --localstatedir=/var \ + --with-rcdir=no \ + --enable-auto-setup-driverless-only + make +} + +# 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 + + # Fix file ownership + chgrp -R 209 "$BPM_OUTPUT"/etc/cups + + # Install package license + install -Dm644 "$BPM_SOURCE"/{COPYING,NOTICE} -t "$BPM_OUTPUT"/usr/share/licenses/cups-browsed +}