summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPantelis Panayiotou2015-09-22 12:34:29 +0300
committerPantelis Panayiotou2015-09-22 12:34:29 +0300
commitcb63f1acd9327b5cf3a1399b45567944ae165402 (patch)
tree4b79277daf5669764e55b81d06d5585133dbc01f
downloadaur-cb63f1acd9327b5cf3a1399b45567944ae165402.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD19
-rw-r--r--driver.install14
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ba49d33cd8b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = openprinting-ppds-pxlcolor-ricoh
+ pkgdesc = PPD files for Ricoh's PCL colour printers, supplied by Ricoh
+ pkgver = 20140319
+ pkgrel = 1
+ url = https://www.openprinting.org/driver/pxlcolor-Ricoh
+ install = driver.install
+ arch = any
+ license = MIT
+ depends = cups
+ depends = ghostscript
+ conflicts = ppd-ricoh
+ conflicts = openprinting-ppds-postscript-ricoh
+ source = https://www.openprinting.org/download/printdriver/components/lsb3.2/main/RPMS/noarch/openprinting-ppds-pxlcolor-ricoh-20140319-1lsb3.2.noarch.rpm
+ md5sums = 7aba41f56bf93fd9e6f21aa27c6b1792
+
+pkgname = openprinting-ppds-pxlcolor-ricoh
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5b193aefbf1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Pantelis Panayiotou <p.panayiotou@gmail.com>
+pkgname=openprinting-ppds-pxlcolor-ricoh
+pkgver=20140319
+pkgrel=1
+pkgdesc="PPD files for Ricoh's PCL colour printers, supplied by Ricoh"
+arch=('any')
+url='https://www.openprinting.org/driver/pxlcolor-Ricoh'
+license=('MIT')
+depends=(cups ghostscript)
+conflicts=(ppd-ricoh openprinting-ppds-postscript-ricoh)
+install=driver.install
+source=('https://www.openprinting.org/download/printdriver/components/lsb3.2/main/RPMS/noarch/openprinting-ppds-pxlcolor-ricoh-20140319-1lsb3.2.noarch.rpm')
+md5sums=('7aba41f56bf93fd9e6f21aa27c6b1792')
+
+package() {
+ install -d $pkgdir/usr/share/cups/model/Ricoh $pkgdir/usr/share/doc/openprinting-ppds-pxlcolor-ricoh
+ install $srcdir/opt/OpenPrinting-Ricoh/ppds/Ricoh/* $pkgdir/usr/share/cups/model/Ricoh/
+ install $srcdir/opt/OpenPrinting-Ricoh/doc/openprinting-ppds-pxlcolor-ricoh/* $pkgdir/usr/share/doc/openprinting-ppds-pxlcolor-ricoh/
+}
diff --git a/driver.install b/driver.install
new file mode 100644
index 00000000000..8585f821e32
--- /dev/null
+++ b/driver.install
@@ -0,0 +1,14 @@
+post_install() {
+ echo "Restarting CUPS server"
+
+ systemctl restart org.cups.cupsd.service
+ return $?
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}