New package: cups-pdf-3.0.1
Usually, the conf file would have to be owned by lp group to match all other files in `/etc/cups` but adding a post-install to just chown it seems wrong... so let's leave it as is for now.
This commit is contained in:
parent
12db52dd0b
commit
03602ab7b2
2 changed files with 55 additions and 0 deletions
23
srcpkgs/cups-pdf/patches/print-to-home.patch
Normal file
23
srcpkgs/cups-pdf/patches/print-to-home.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
# reason: print to $HOME by default
|
||||
|
||||
--- extra/cups-pdf.conf
|
||||
+++ extra/cups-pdf.conf
|
||||
@@ -42,17 +42,17 @@
|
||||
### Key: Out (config)
|
||||
## CUPS-PDF output directory
|
||||
## special qualifiers:
|
||||
## ${HOME} will be expanded to the user's home directory
|
||||
## ${USER} will be expanded to the user name
|
||||
## in case it is an NFS export make sure it is exported without
|
||||
## root_squash!
|
||||
### Default: /var/spool/cups-pdf/${USER}
|
||||
|
||||
-#Out /var/spool/cups-pdf/${USER}
|
||||
+Out ${HOME}/PDF
|
||||
|
||||
### Key: AnonDirName (config)
|
||||
## ABSOLUTE path for anonymously created PDF files
|
||||
## if anonymous access is disabled this setting has no effect
|
||||
### Default: /var/spool/cups-pdf/ANONYMOUS
|
||||
|
||||
#AnonDirName /var/spool/cups-pdf/ANONYMOUS
|
32
srcpkgs/cups-pdf/template
Normal file
32
srcpkgs/cups-pdf/template
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Template file for 'cups-pdf'
|
||||
pkgname=cups-pdf
|
||||
version=3.0.1
|
||||
revision=1
|
||||
conf_files="/etc/cups/cups-pdf.conf"
|
||||
makedepends="cups-devel"
|
||||
depends="ghostscript"
|
||||
short_desc="PDF printer for cups"
|
||||
maintainer="Piraty <piraty1@inbox.ru>"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="https://www.cups-pdf.de/"
|
||||
distfiles="https://www.cups-pdf.de/src/${pkgname}_${version}.tar.gz"
|
||||
checksum=738669edff7f1469fe5e411202d87f93ba25b45f332a623fb607d49c59aa9531
|
||||
|
||||
do_build() {
|
||||
$CC $CFLAGS -o $pkgname src/cups-pdf.c -lcups ${LDFLAGS}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# backend
|
||||
vmkdir usr/lib/cups/backend/
|
||||
vinstall "${wrksrc}/cups-pdf" 700 usr/lib/cups/backend/
|
||||
|
||||
# Postscript drivers
|
||||
vmkdir usr/share/cups/model/
|
||||
vcopy "extra/*.ppd" usr/share/cups/model/
|
||||
|
||||
vmkdir etc/cups
|
||||
vcopy extra/cups-pdf.conf etc/cups/
|
||||
vdoc README
|
||||
vdoc ChangeLog
|
||||
}
|
Loading…
Add table
Reference in a new issue