[arch-commits] Commit in cups-pdf/repos (6 files)

Andreas Radke andyrtr at archlinux.org
Wed Jan 18 16:39:54 UTC 2017


    Date: Wednesday, January 18, 2017 @ 16:39:53
  Author: andyrtr
Revision: 286921

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  cups-pdf/repos/testing-i686/
  cups-pdf/repos/testing-i686/PKGBUILD
    (from rev 286920, cups-pdf/trunk/PKGBUILD)
  cups-pdf/repos/testing-i686/cups-pdf.install
    (from rev 286920, cups-pdf/trunk/cups-pdf.install)
  cups-pdf/repos/testing-x86_64/
  cups-pdf/repos/testing-x86_64/PKGBUILD
    (from rev 286920, cups-pdf/trunk/PKGBUILD)
  cups-pdf/repos/testing-x86_64/cups-pdf.install
    (from rev 286920, cups-pdf/trunk/cups-pdf.install)

---------------------------------+
 testing-i686/PKGBUILD           |   44 ++++++++++++++++++++++++++++++++++++++
 testing-i686/cups-pdf.install   |   16 +++++++++++++
 testing-x86_64/PKGBUILD         |   44 ++++++++++++++++++++++++++++++++++++++
 testing-x86_64/cups-pdf.install |   16 +++++++++++++
 4 files changed, 120 insertions(+)

Copied: cups-pdf/repos/testing-i686/PKGBUILD (from rev 286920, cups-pdf/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-01-18 16:39:53 UTC (rev 286921)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Thomas Baechler <thomas.baechler at rwth-aachen.de>
+
+pkgname=cups-pdf
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="PDF printer for cups"
+arch=(i686 x86_64)
+depends=('cups' 'ghostscript')
+install=cups-pdf.install
+# broken cert setup for https
+url="http://www.cups-pdf.de/welcome.shtml"
+license=('GPL2')
+source=(http://www.cups-pdf.de/src/cups-pdf_$pkgver.tar.gz)
+backup=(etc/cups/cups-pdf.conf)
+# http://www.cups-pdf.de/src/cups-pdf_3.0.0.tar.gz.md5 - no other checksums
+md5sums=('afc8d4f8db5e69ac4379b0c0006a654d')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver/src
+  [ -z "$CC" ] && CC=gcc
+#  $CC $CFLAGS -Wall -o cups-pdf cups-pdf.c
+  $CC $CFLAGS -s cups-pdf.c -o cups-pdf -lcups  
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver/src
+  install -D -m700 cups-pdf $pkgdir/usr/lib/cups/backend/cups-pdf
+
+  # Install Postscript Color printer
+  cd ../extra
+  install -D -m644 CUPS-PDF_noopt.ppd $pkgdir/usr/share/cups/model/CUPS-PDF_noopt.ppd
+  install -D -m644 CUPS-PDF_opt.ppd $pkgdir/usr/share/cups/model/CUPS-PDF_opt.ppd
+
+  # Install config file
+  install -D -m644 cups-pdf.conf $pkgdir/etc/cups/cups-pdf.conf
+
+  # Install docs
+  install -D -m 644 ../README "$pkgdir"/usr/share/doc/$pkgname/README
+  
+  # use lp group from cups pkg FS#36769
+  chgrp -R lp ${pkgdir}/etc/cups
+}

Copied: cups-pdf/repos/testing-i686/cups-pdf.install (from rev 286920, cups-pdf/trunk/cups-pdf.install)
===================================================================
--- testing-i686/cups-pdf.install	                        (rev 0)
+++ testing-i686/cups-pdf.install	2017-01-18 16:39:53 UTC (rev 286921)
@@ -0,0 +1,16 @@
+post_install() {
+  cat << "EOF"
+-------------------------------------------------
+To use cups-pdf, restart cups and visit the cups
+web interface at http://localhost:631/
+
+You can now add a "Virtual Printer (PDF Printer)"
+and use the Postscript/Generic postscript color
+printer driver.
+
+Note that cups-pdf has a configuration
+file in /etc/cups. The default location for
+pdf output is /var/spool/cups-pdf/$username.
+-------------------------------------------------
+EOF
+}

Copied: cups-pdf/repos/testing-x86_64/PKGBUILD (from rev 286920, cups-pdf/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-01-18 16:39:53 UTC (rev 286921)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Thomas Baechler <thomas.baechler at rwth-aachen.de>
+
+pkgname=cups-pdf
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="PDF printer for cups"
+arch=(i686 x86_64)
+depends=('cups' 'ghostscript')
+install=cups-pdf.install
+# broken cert setup for https
+url="http://www.cups-pdf.de/welcome.shtml"
+license=('GPL2')
+source=(http://www.cups-pdf.de/src/cups-pdf_$pkgver.tar.gz)
+backup=(etc/cups/cups-pdf.conf)
+# http://www.cups-pdf.de/src/cups-pdf_3.0.0.tar.gz.md5 - no other checksums
+md5sums=('afc8d4f8db5e69ac4379b0c0006a654d')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver/src
+  [ -z "$CC" ] && CC=gcc
+#  $CC $CFLAGS -Wall -o cups-pdf cups-pdf.c
+  $CC $CFLAGS -s cups-pdf.c -o cups-pdf -lcups  
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver/src
+  install -D -m700 cups-pdf $pkgdir/usr/lib/cups/backend/cups-pdf
+
+  # Install Postscript Color printer
+  cd ../extra
+  install -D -m644 CUPS-PDF_noopt.ppd $pkgdir/usr/share/cups/model/CUPS-PDF_noopt.ppd
+  install -D -m644 CUPS-PDF_opt.ppd $pkgdir/usr/share/cups/model/CUPS-PDF_opt.ppd
+
+  # Install config file
+  install -D -m644 cups-pdf.conf $pkgdir/etc/cups/cups-pdf.conf
+
+  # Install docs
+  install -D -m 644 ../README "$pkgdir"/usr/share/doc/$pkgname/README
+  
+  # use lp group from cups pkg FS#36769
+  chgrp -R lp ${pkgdir}/etc/cups
+}

Copied: cups-pdf/repos/testing-x86_64/cups-pdf.install (from rev 286920, cups-pdf/trunk/cups-pdf.install)
===================================================================
--- testing-x86_64/cups-pdf.install	                        (rev 0)
+++ testing-x86_64/cups-pdf.install	2017-01-18 16:39:53 UTC (rev 286921)
@@ -0,0 +1,16 @@
+post_install() {
+  cat << "EOF"
+-------------------------------------------------
+To use cups-pdf, restart cups and visit the cups
+web interface at http://localhost:631/
+
+You can now add a "Virtual Printer (PDF Printer)"
+and use the Postscript/Generic postscript color
+printer driver.
+
+Note that cups-pdf has a configuration
+file in /etc/cups. The default location for
+pdf output is /var/spool/cups-pdf/$username.
+-------------------------------------------------
+EOF
+}



More information about the arch-commits mailing list