summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Fox-Rabinovitz2015-06-10 17:32:54 -0400
committerJoseph Fox-Rabinovitz2015-06-10 17:32:54 -0400
commitb3fd3c37d2215af0f33dbb69c833de8c950e7423 (patch)
treed3482878142c454f71210af74a2512cf2727bb41
downloadaur-b3fd3c37d2215af0f33dbb69c833de8c950e7423.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD57
-rw-r--r--kyocera-cups.install15
3 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c620b7844d7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = kyocera-cups
+ pkgdesc = PPD drivers for Kyocera and UTAX TaskAlfa (TA) printers
+ pkgver = 8.1404
+ pkgrel = 1
+ url = http://usa.kyoceradocumentsolutions.com/americas/jsp/Kyocera/resource_details.jsp?pid=26128&rid=27560
+ install = kyocera-cups.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = unzip
+ depends = cups
+ conflicts = kyocera-fs-c2x26mfp
+ conflicts = kyocera-fs1128mfp
+ conflicts = kyocera-fs1370dn
+ conflicts = kyocera-ta266ci-cups
+ noextract = Kyocera%20Linux%20PPD%20Ver%208.1404.exe
+ source = http://usa.kyoceradocumentsolutions.com/americas/jsp/upload/resource/27560/0/Kyocera%20Linux%20PPD%20Ver%208.1404.exe
+ sha1sums = 4ed4db0e25daf989e36360351a8ba26e303b8483
+
+pkgname = kyocera-cups
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..961db8bc646
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: MadPhysicist <jfoxrabinovitz at gmail dot com>
+pkgname=kyocera-cups
+pkgver=8.1404
+pkgrel=1
+pkgdesc='PPD drivers for Kyocera and UTAX TaskAlfa (TA) printers'
+arch=('i686' 'x86_64')
+url='http://usa.kyoceradocumentsolutions.com/americas/jsp/Kyocera/resource_details.jsp?pid=26128&rid=27560'
+license=('custom')
+groups=()
+depends=('cups')
+makedepends=('unzip')
+optdepends=()
+provides=()
+conflicts=('kyocera-fs-c2x26mfp' 'kyocera-fs1128mfp' 'kyocera-fs1370dn' 'kyocera-ta266ci-cups')
+replaces=()
+backup=()
+options=()
+install=kyocera-cups.install
+changelog=
+source=('http://usa.kyoceradocumentsolutions.com/americas/jsp/upload/resource/27560/0/Kyocera%20Linux%20PPD%20Ver%208.1404.exe')
+noextract=('Kyocera%20Linux%20PPD%20Ver%208.1404.exe')
+sha1sums=('4ed4db0e25daf989e36360351a8ba26e303b8483')
+
+prepare() {
+ cd ${srcdir}
+ unzip Kyocera%20Linux%20PPD%20Ver%208.1404.exe
+ tar -xzf KyoceraLinuxPackages-20141229.tar.gz
+ tar -xzf TALinuxPackages-20141229.tar.gz
+}
+
+package() {
+ # Set number of bits: '32bit' or '64bit', depending on ${CARCH}
+ if [ "${CARCH}" = "x86_64" ]; then
+ _bittage='64bit'
+ else
+ _bittage='32bit'
+ fi
+
+ # Set language name: Default is English
+ # Valid options are: English, French, German, Italian, Portuguese, Spanish
+ # Options are result of `ls LinuxPackages/${_bittage}/Global`
+ _language='English'
+
+ # LICENSES.txt documents are identical, copy only one of them:
+ install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
+ install -m644 ${srcdir}/LinuxPackages/LICENSES.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.txt
+
+ # Install regular and TA PPDs
+ install -dm755 ${pkgdir}/usr/share/cups/model/Kyocera
+ install -dm755 ${pkgdir}/usr/share/cups/model/UTAX_TA
+ install -m644 ${srcdir}/LinuxPackages/${_bittage}/Global/${_language}/PPDs/*.[pP][pP][dD] ${pkgdir}/usr/share/cups/model/Kyocera
+ install -m644 ${srcdir}/LinuxPackagesTA/${_bittage}/Global/${_language}/PPDs/*.[pP][pP][dD] ${pkgdir}/usr/share/cups/model/UTAX_TA
+
+ # kyofilter_C programs are identical for a given bittage, copy only one of them:
+ install -dm755 ${pkgdir}/usr/lib/cups/filter
+ install -m755 ${srcdir}/LinuxPackages/${_bittage}/Global/${_language}/filter/kyofilter_C ${pkgdir}/usr/lib/cups/filter
+}
diff --git a/kyocera-cups.install b/kyocera-cups.install
new file mode 100644
index 00000000000..532fbcd84ed
--- /dev/null
+++ b/kyocera-cups.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo "Restarting CUPS server"
+
+ systemctl restart org.cups.cupsd.service
+ return $?
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+