summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2018-09-07 02:07:53 -0400
committerChris Severance2018-09-07 02:07:53 -0400
commitf97b903cc7e7769c0e15ba339881361e4a590299 (patch)
treee36ff95e81adf63fb3e553fd6287b33965e397b0
parentc04804b45828dd8cdd612bfc897419adec4ac790 (diff)
downloadaur-f97b903cc7e7769c0e15ba339881361e4a590299.tar.gz
autu: Update to 8.1601-2
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD105
2 files changed, 68 insertions, 48 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 838b702924b..c7fbbc6ca1e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,20 @@
# Generated by mksrcinfo v8
-# Wed Jul 19 04:49:23 UTC 2017
+# Fri Sep 7 06:07:53 UTC 2018
pkgbase = kyocera-cups
- pkgdesc = PPD drivers for Kyocera and UTAX TaskAlfa (TA) printers
+ pkgdesc = PPD drivers for Kyocera CS ECOSYS FS KM TASKalfa KPDL printers copiers wide format
pkgver = 8.1601
pkgrel = 2
- url = http://la.kyoceradocumentsolutions.com/americas/jsp/Kyocera/resource_details.jsp?pid=26378&rid=28992
- install = kyocera-cups.install
+ url = https://usa.kyoceradocumentsolutions.com/en/products-services/hardware/printers/ecosys-fs-4200dn.html
arch = i686
arch = x86_64
license = custom
depends = cups
conflicts = kyocera-ecosys-m2035dn
conflicts = kyocera-ecosys-p6035cdn
- source = http://la.kyoceradocumentsolutions.com/americas/jsp/upload/resource/28992/0/Kyocera%20Linux%20PPD%20Ver%208.1601.tar.gz
+ options = !strip
+ source = https://usa.kyoceradocumentsolutions.com/content/dam/kdc/kdag/downloads/technical/executables/drivers/kyoceradocumentsolutions/us/en/Kyocera_Linux_PPD_Ver_8.1601.tar.gz
sha1sums = ad7adba5e29464e9c3c1f052c6899d54f5afe0f4
+ sha256sums = 1375b67d4f79be0a02418cf8a03ea475e20ef92bf221fdb585f15a55c2d964e5
pkgname = kyocera-cups
diff --git a/PKGBUILD b/PKGBUILD
index 799724f8a10..f34d3cad3d8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,55 +1,74 @@
-# Maintainer: MadPhysicist <jfoxrabinovitz at gmail dot com>
-pkgname=kyocera-cups
-pkgver=8.1601
-pkgrel=2
-pkgdesc='PPD drivers for Kyocera and UTAX TaskAlfa (TA) printers'
-_rid=28992
-_pid=26378
+# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
+# Contributor: MadPhysicist <jfoxrabinovitz at gmail dot com>
+
+# UTAX TA Triumph Adler printers TALinuxPackages-20141229.tar.gz are no longer included from 8.1404 to 8.1601
+# Most UTAX printers are available from https://www.utax.com/ https://www.utax.de/ https://www.utaxuk.co.uk/
+# UTAX file versions use kyofilter_B and are slightly older than the ones distributed by Kyocera
+
+# TODO: Some printer models have newer or older drivers. Should we add them?
+
+# How to find driver (long pauses for page display)
+# Kyocera USA Download Center, Drivers, Product Category: All, Products: All, Technical Downloads: Drivers, Operating System: UNIX / LINUX
+
+set -u
+pkgname='kyocera-cups'
+pkgver='8.1601'
+pkgrel='2'
+#pkgdesc='PPD drivers for Kyocera CS ECOSYS FS KM TASKalfa KPDL and UTAX TA Triumph Adler printers copiers wide format'
+pkgdesc='PPD drivers for Kyocera CS ECOSYS FS KM TASKalfa KPDL printers copiers wide format'
arch=('i686' 'x86_64')
-url="http://la.kyoceradocumentsolutions.com/americas/jsp/Kyocera/resource_details.jsp?pid=${_pid}&rid=${_rid}"
+# https://www.kyoceradocumentsolutions.eu/index/products/product/fs4200dn.technical_specification.html (zip incomplete PPD list)
+url='https://usa.kyoceradocumentsolutions.com/en/products-services/hardware/printers/ecosys-fs-4200dn.html' # (.tar.gz complete PPD list)
license=('custom')
-groups=()
depends=('cups')
-makedepends=()
-optdepends=()
-provides=()
conflicts=('kyocera-ecosys-m2035dn' 'kyocera-ecosys-p6035cdn')
-replaces=()
-backup=()
-options=()
-install=kyocera-cups.install
-changelog=
-source=("http://la.kyoceradocumentsolutions.com/americas/jsp/upload/resource/${_rid}/0/Kyocera%20Linux%20PPD%20Ver%20${pkgver}.tar.gz")
-noextract=()
+options=('!strip')
+#install="${pkgname}.install"
+# https://downloads.kyoceradocumentsolutions.com.au/drivers/Drivers/KyoceraLinuxPackages-20141229.tar.gz # 8.1404
+source=("https://usa.kyoceradocumentsolutions.com/content/dam/kdc/kdag/downloads/technical/executables/drivers/kyoceradocumentsolutions/us/en/Kyocera_Linux_PPD_Ver_${pkgver}.tar.gz")
sha1sums=('ad7adba5e29464e9c3c1f052c6899d54f5afe0f4')
+sha256sums=('1375b67d4f79be0a02418cf8a03ea475e20ef92bf221fdb585f15a55c2d964e5')
prepare() {
- # Set number of bits: '32bit' or '64bit', depending on ${CARCH}
- if [ "${CARCH}" = "x86_64" ]; then
- _bittage='64bit'
- _suffix='amd64'
- else
- _bittage='32bit'
- _suffix='i386'
- fi
-
- # Set language name: Default is English
- # Valid options are: de, en, es, fr, it, pt
- # Options are result of `ls ${srcdir}/dist/KyoceraLinuxPackages/Global/${_bittage}`
- _language='en'
-
- cd "${srcdir}/dist/KyoceraLinuxPackages/Global/${_bittage}"
-
- # No additional depends since bsdtar can handle rpms:
- # http://unix.stackexchange.com/a/125703/79307
- bsdtar -xf "kyodialog3.${_language}_0.5-0_${_suffix}.rpm" -C ..
+ set -u
+ # Set number of bits: '32bit' or '64bit', depending on ${CARCH}
+ declare -A _bittage=([i686]='32bit' [x86_64]='64bit')
+ declare -A _suffix=([i686]='i386' [x86_64]='amd64')
+
+ # Set language name: Default is English
+ # Valid options are: de, en, es, fr, it, pt
+ # Options are result of `ls ${srcdir}/dist/KyoceraLinuxPackages/Global/${_bittage}`
+ local _language='en'
+
+ # No additional makedepends since bsdtar can handle rpms:
+ # http://unix.stackexchange.com/a/125703/79307
+ bsdtar -xf "dist/KyoceraLinuxPackages/Global/${_bittage[${CARCH}]}/kyodialog3.${_language}_0.5-0_${_suffix[${CARCH}]}.rpm"
+ set +u
}
package() {
- # Install the package
- cp -r "${srcdir}/dist/KyoceraLinuxPackages/Global/usr" "${pkgdir}"
+ set -u
+ # Install the package
+ mv 'usr' "${pkgdir}"
+
+ # Change folders to be more like 8.1404 for comparison
+ install -d "${pkgdir}/usr/share/cups/model"
+ mv "${pkgdir}/usr/share/ppd/kyocera" "${pkgdir}/usr/share/cups/model/Kyocera"
+ rmdir "${pkgdir}/usr/share/ppd"
+
+ if :; then
+ # Remove dialog launcher. It doesn't work for me.
+ rm "${pkgdir}/usr/bin/kyodialog3"
+ rm -r "${pkgdir}/usr/share/applications/" "${pkgdir}/usr/share/doc/" "${pkgdir}/usr/share/kyocera"
+ fi
+
+ # grep -he '^*ModelName:' "${pkgdir}/usr/share/cups/model/Kyocera"/*.ppd | sort -u > "${startdir}/models.${pkgver}.txt"
+
+ # Compressing hinders package compression which results in a much larger package
+ # gzip "${pkgdir}/usr/share/cups/model/Kyocera"/*.ppd
- # Install LICENSES
- install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
- install -m644 "${srcdir}/dist/KyoceraLinuxPackages/LICENSES.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.txt"
+ # Install LICENSES
+ install -Dpm644 "${srcdir}/dist/KyoceraLinuxPackages/LICENSES.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.txt"
+ set +u
}
+set +u