Package Details: foomatic-filters-lprng 4.0.17-1

Git Clone URL: https://aur.archlinux.org/foomatic-filters-lprng.git (read-only)
Package Base: foomatic-filters-lprng
Description: Universal print filter, lprng version
Upstream URL: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic
Licenses: GPL2
Conflicts: cups
Submitter: djraymondnm
Maintainer: djraymondnm
Last Packager: djraymondnm
Votes: 4
Popularity: 0.000007
First Submitted: 2015-01-02 17:33
Last Updated: 2015-06-22 21:20

Dependencies (3)

Required by (2)

Sources (2)

Latest Comments

ron2138 commented on 2018-09-11 11:36

Follow 2 patches.

  1. The reason why PKGBUILD:makedpends is required is at an archlinux forum post.
  2. 0001-manual-page-accommodation-to-pkg-name.patch mainly replaces its reference to foomatic-rip by foomatic-rip-lprng, since this is the binary name that will be installed, as well as the name of the manual page.

I think this should be applied.

diff --git a/PKGBUILD b/PKGBUILD
index [`a45f42d`](https://aur.archlinux.org/cgit/aur.git/commit/?h=foomatic-filters-lprng&id=a45f42d)..e4f86d9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,11 +13,24 @@ optdepends=(
 )
 conflicts=(cups
 )
+makedepends=('a2ps')
+_patches=(
+       0001-manual-page-accommodation-to-pkg-name.patch
+)
 source=(
        '<http://www.openprinting.org/download/foomatic/foomatic-filters-4.0.17.tar.gz>'
        README
+       "${_patches[@]}"
 )

+prepare() {
+       cd "foomatic-filters-$pkgver"
+
+       for p in "${_patches[@]}"; do
+           patch -Np1 -i "$srcdir/$p"
+       done
+}
+
 build() {
        cd "$srcdir/foomatic-filters-$pkgver"
        ./configure --prefix=/usr --sysconfdir='/etc' -mandir=/usr/share/man
@@ -29,5 +42,8 @@ package() {
          install -Dm655 foomatic-rip ${pkgdir}/usr/bin/foomatic-rip-lprng
          install -Dm644 foomatic-rip.1 ${pkgdir}/usr/share/man/man1/foomatic-rip-lprng.1
 }
+
 md5sums=('b05f5dcbfe359f198eef3df5b283d896'
-         '87ddcfc880342ff1f8414a2eda5d8b17')
+         '87ddcfc880342ff1f8414a2eda5d8b17'
+         '494fef8626d4a836a60fdc99ed27fc58'
+)

--- a/foomatic-rip.1.in 2012-07-02 14:50:46.000000000 +0000
+++ b/foomatic-rip.1.in 2018-09-11 14:44:54.652430293 +0000
@@ -1,52 +1,52 @@
 .\" This -*- nroff -*- source file is part of foomatic.

 .hy 0
-.TH FOOMATIC-RIP 1 "2002-11-26" "Foomatic Project"
+.TH FOOMATIC-RIP-LPRNG 1 "2018-09-11" "Foomatic Project"
 .SH NAME
-foomatic-rip \- Universal print filter/RIP wrapper
+foomatic-rip-lprng \- Universal print filter/RIP wrapper
 .SH SYNOPSIS

 .SS \fRGeneral Options:
-.BI \fBfoomatic-rip\fR\ \fB[-v]\ [-q]\fP \fI\ <spooler-specific\ options>
+.BI \fBfoomatic-rip-lprng\fR\ \fB[-v]\ [-q]\fP \fI\ <spooler-specific\ options>

 .SS \fRSpooler-less printing/CPS (older versions) filter:
-.BI \fBfoomatic-rip\fR\ \fB[\fB-P\fR \ \fI<printer>\fR \ 
+.BI \fBfoomatic-rip-lprng\fR\ \fB[\fB-P\fR \ \fI<printer>\fR \ 
 | \ \fB--ppd\fR \ \fI<ppdfile>\fR \fB]\fR \ [\fB-J\fR\ \fI<jobtitle>\fR ]
 [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fB[\fI<files>\fB]\fR

 .SS \fRCUPS filter:
-.BI \fBfoomatic-rip\fR\ \fI<jobid>\fR \ \fI<user>\fR \ \fI<jobtitle>\fR \ \fI<numcopies>\fR \ \fI<options>\fR \ \fB[\fI<file>\fB]\fR 
+.BI \fBfoomatic-rip-lprng\fR\ \fI<jobid>\fR \ \fI<user>\fR \ \fI<jobtitle>\fR \ \fI<numcopies>\fR \ \fI<options>\fR \ \fB[\fI<file>\fB]\fR

 .SS \fRLPRng filter:
-.BI \fBfoomatic-rip\fR\ --lprng\  \fB[\fB-J\fI<jobtitle>\fB]\fR   \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR \ \fI<ppdfile>\fR
+.BI \fBfoomatic-rip-lprng\fR\ --lprng\  \fB[\fB-J\fI<jobtitle>\fB]\fR   \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR \ \fI<ppdfile>\fR
 .br

-.BI \fBfoomatic-rip\fR\ \ \fB[\fB-J\fI<jobtitle>\fB]\fR   \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR
+.BI \fBfoomatic-rip-lprng\fR\ \ \fB[\fB-J\fI<jobtitle>\fB]\fR   \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR
 .br
 (printcap :pdd=<ppdfile>)

-.BI \fBfoomatic-rip\fR\ \fB--ppd\fR \ \fI<ppdfile>\fR   \fB[\fB-J\fI<jobtitle>\fB]\fR \ \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR
+.BI \fBfoomatic-rip-lprng\fR\ \fB--ppd\fR \ \fI<ppdfile>\fR   \fB[\fB-J\fI<jobtitle>\fB]\fR \ \fB[\fB-Z\fI<option>\fB=\fI<value>\fB[,\fI<option>\fB=\fI<value>\fB[, \ \fB...]]\fR

 .SS \fRLPD/GNUlpr filter:
-.BI \fBfoomatic-rip\fR\ \fB[\fB-w\fR\ \fI<number>\fB]\fR\ \fB[\fB-l\fR\ \fI<number>\fB]\fR\ \fB[\fB-x\fR\ \fI<number>\fB]\fR\ \fB[\fB-y\fR\ \fI<number>\fB]\fR\ \fB[\fB-i\fR\ \fI<number>\fB]\fR\ \fB[\fB-c\fB]\fR\ \fB[\fB-n\fR\ \fI<string>\fB]\fR\ \fB[\fB-h\fR\ \fI<string>\fB]\fR\ \fB[\fB-j|-J\fR\ \fI<jobtitle>\fB|\fI<options>\fB]\fR\ \fI<ppdfile>\fR
+.BI \fBfoomatic-rip-lprng\fR\ \fB[\fB-w\fR\ \fI<number>\fB]\fR\ \fB[\fB-l\fR\ \fI<number>\fB]\fR\ \fB[\fB-x\fR\ \fI<number>\fB]\fR\ \fB[\fB-y\fR\ \fI<number>\fB]\fR\ \fB[\fB-i\fR\ \fI<number>\fB]\fR\ \fB[\fB-c\fB]\fR\ \fB[\fB-n\fR\ \fI<string>\fB]\fR\ \fB[\fB-h\fR\ \fI<string>\fB]\fR\ \fB[\fB-j|-J\fR\ \fI<jobtitle>\fB|\fI<options>\fB]\fR\ \fI<ppdfile>\fR

 .SS \fRPPR RIP:
-.BI \fBfoomatic-rip\fR\ \fB[\fI<option>\fB=\fI<value>\fR \ [...]]
+.BI \fBfoomatic-rip-lprng\fR\ \fB[\fI<option>\fB=\fI<value>\fR \ [...]]

 .SS \fRPPR interface:
-.BI \fBfoomatic-rip\fR\ \fI<queue>\fR \ \fI<destaddress>\fR \ \fI<options>\fR \ \fI<jobbreak>\fR \ \fI<feedback>\fR \ \fI<codes>\fR \ \fI<jobname>\fR \ \fI<routing>\fR \ \fI<for>\fR \ \fI<filetype>\fR \ \fB[\fI<file>\fB]\fR 
+.BI \fBfoomatic-rip-lprng\fR\ \fI<queue>\fR \ \fI<destaddress>\fR \ \fI<options>\fR \ \fI<jobbreak>\fR \ \fI<feedback>\fR \ \fI<codes>\fR \ \fI<jobname>\fR \ \fI<routing>\fR \ \fI<for>\fR \ \fI<filetype>\fR \ \fB[\fI<file>\fB]\fR

 .SS \fRPDQ driver file generation:
-.BI foomatic-rip\ \fB[\fB--ppd\fR \ \fI<ppdfile>\fB]\fR \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fB--genpdq|--appendpdq|--genrawpdq|--appendrawpdq\fR
+.BI foomatic-rip-lprng\ \fB[\fB--ppd\fR \ \fI<ppdfile>\fB]\fR \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fB--genpdq|--appendpdq|--genrawpdq|--appendrawpdq\fR

 .SS \fRPDQ filter:
-.BI foomatic-rip\ \fB--pdq\fR\ \fB--ppd\fR \ \fI<ppdfile>\fR \fB]\fR \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fI<file>\fR
+.BI foomatic-rip-lprng\ \fB--pdq\fR\ \fB--ppd\fR \ \fI<ppdfile>\fR \fB]\fR \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fI<file>\fR

 .SS \fRCPS (newer versions) filter:
-.BI \fBfoomatic-rip\fR\ \fB--cps\fR\ \fB-P\fR \ \fI<printer>\fR \ [\fB-J\fR\ \fI<jobtitle>\fR ] \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fB[\fI<files>\fB]\fR
+.BI \fBfoomatic-rip-lprng\fR\ \fB--cps\fR\ \fB-P\fR \ \fI<printer>\fR \ [\fB-J\fR\ \fI<jobtitle>\fR ] \ [\fB-o\fR \ \fI<option>\fB=\fI<value>\fR \ [...]] \ \fB[\fI<files>\fB]\fR

 .SH DESCRIPTION
-foomatic-rip is a universal print filter which works with every known free
+foomatic-rip-lprng is a universal print filter which works with every known free
 software printer spooler. It has the following features:

 .Topic 
@@ -68,7 +68,7 @@ the manufacturers of PostScript printers
 for all spoolers.

 .Topic
-foomatic-rip works with every known spooler (\fBCUPS\fR, \fBLPRng\fR,
+foomatic-rip-lprng works with every known spooler (\fBCUPS\fR, \fBLPRng\fR,
 \fBLPD\fR, \fBGNUlpr\fR, \fBPPR\fR, \fBPDQ\fR, \fBCPS\fR, and
 \fBwithout spooler\fR). It auto-detects the spooler from which it was
 called by the command line options and environment variables which
@@ -77,11 +77,11 @@ were supplied by the spooler.
 .Topic
 Non-PostScript/PDF files are translated to PostScript before they are
 passed to the renderer. This is usually done by \fBa2ps(1)\fR,
-\fBenscript(1)\fR, or \fBmpage(1)\fR. foomatic-rip auto-detects which
+\fBenscript(1)\fR, or \fBmpage(1)\fR. foomatic-rip-lprng auto-detects which
 program is installed, but manual configuration is also possible.

 .Topic
-foomatic-rip does not only apply option settings supplied by the user
+foomatic-rip-lprng does not only apply option settings supplied by the user
 through the command line of the printing command, but also searches
 the entire job for embedded option settings (only PostScript
 jobs). Here not only settings which affect the whole job are taken into
@@ -120,7 +120,7 @@ a plain text job.
 .BI \-o \ \fI<option>\fB=\fI<value>\fR
 Option settings for this job, do

-.B foomatic-rip -P \fI<printer>\fR \fB-o docs \fI<file>\fR 
+.B foomatic-rip-lprng -P \fI<printer>\fR \fB-o docs \fI<file>\fR

 (\fI<file>\fR can be an arbitrary existing file, as \fB.bashrc\fR,
 will not be printed) to print a list of available options for the
@@ -130,7 +130,7 @@ specified \fI<printer>\fR.
 The file(s) to be printed.

 .P
-\fBfoomatic-rip\fR will print from standard input unless at least one file to
+\fBfoomatic-rip-lprng\fR will print from standard input unless at least one file to
 be printed is specified on the command line.
 If your printer PPD file is stored as \fI@sysconfdir@/direct/<printer>.ppd\fR
 or \fI~/.foomatic/direct/<printer>.ppd\fR you can use it by simply specifying "-P \fI<printer>\fR".
@@ -195,15 +195,15 @@ <http://www.openprinting.org/>
 .SH "CONFIGURATION FILE"

 The file \fB@sysconfdir@/foomatic/filter.conf\fR is read whenever
-foomatic-rip is executed. It allows to configure the behavior of
-foomatic-rip as follows (lines beginning with \fB#\fR are comments and
+foomatic-rip-lprng is executed. It allows to configure the behavior of
+foomatic-rip-lprng as follows (lines beginning with \fB#\fR are comments and
 therefore get ignored):

 .TP 10
 .BI textfilter: \ <command>
 \fRSelects the filter for input files which are not PostScript or PDF.
 \fI<command>\fR is one of \fBa2ps\fR, \fBenscript\fR, or \fBmpage\fR.
-foomatic-rip automatically selects the needed command line options.
+foomatic-rip-lprng automatically selects the needed command line options.

 .TP 10
 .B debug: 0|1
@@ -230,11 +230,11 @@ should be used.

 .TP 10
 .BI execpath: \ <path>[:<path>]...
-\fRSets the \fB$PATH\fR variable to be used by foomatic-rip.
+\fRSets the \fB$PATH\fR variable to be used by foomatic-rip-lprng.

 .TP 10
 .BI cupsfilterpath: \ <path>[:<path>]...
-\fRSets the directories (colon-separated) in which foomatic-rip searches for
+\fRSets the directories (colon-separated) in which foomatic-rip-lprng searches for
 CUPS filters.

 .TP 10
@@ -262,7 +262,7 @@ The PPD files of the currently defined p
 .TP 8
 @sysconfdir@/foomatic/filter.conf

-Configuration file for foomatic-rip
+Configuration file for foomatic-rip-lprng

 .PD 0

@@ -270,7 +270,7 @@ Configuration file for foomatic-rip
 .\".IR foomatic-XXX (1),

 .SH EXIT STATUS
-.B foomatic-rip
+.B foomatic-rip-lprng
 returns 0 unless something unexpected happens.

 .SH AUTHOR
@@ -278,9 +278,14 @@ Till Kamppeter <\fItill.kamppeter@gmail.
 Wassmanns's <\fImanolo@NCC-1701.B.Shuttle.de\fR> man pages for the
 Foomatic 2.0.x filters.

+archlinux substituted 
+.B foomatic-rip
+, used by the original page, with
+.B foomatic-rip-lprng
+anywhere in this file to better integrate its usage by its foomatic-filters-lprng package.
+
 .SH BUGS
 None so far.

 Please send bug reports to the Foomatic mailing list:
-
 <http://lists.freestandards.org/mailman/listinfo/printing-foomatic>