Package Details: foomatic-filters-lprng 4.0.17-1

Git Clone URL: https://aur.archlinux.org/foomatic-filters-lprng.git (read-only, click to copy)
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.000000
First Submitted: 2015-01-02 17:33 (UTC)
Last Updated: 2015-06-22 21:20 (UTC)

Dependencies (3)

Required by (2)

Sources (2)

Latest Comments

ron2138 commented on 2018-09-11 11:36 (UTC) (edited on 2018-09-21 23:22 (UTC) by ron2138)

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=(
        ''
        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\ 
+.BI \fBfoomatic-rip-lprng\fR\ \fB[-v]\ [-q]\fP \fI\ 

 .SS \fRSpooler-less printing/CPS (older versions) filter:
-.BI \fBfoomatic-rip\fR\ \fB[\fB-P\fR \ \fI\fR \ 
+.BI \fBfoomatic-rip-lprng\fR\ \fB[\fB-P\fR \ \fI\fR \ 
 | \ \fB--ppd\fR \ \fI\fR \fB]\fR \ [\fB-J\fR\ \fI\fR ]
 [\fB-o\fR \ \fI