Initial commit

This commit is contained in:
2025-12-04 16:23:21 +02:00
commit 747f1157e2
3 changed files with 49 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Exclude bpm archives
*.bpm
+20
View File
@@ -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
+27
View File
@@ -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
}