diff options
author | felics | 2018-04-20 14:53:43 +0200 |
---|---|---|
committer | felics | 2018-04-20 14:53:43 +0200 |
commit | 305ec4124ae4b21a6d29850d2991b0c8b981b1e7 (patch) | |
tree | a6251900480fb49f07fe79bc78b4a31375585229 | |
parent | 86874fe8d46b35392f0eb5b1b1ca931bd62a0a0d (diff) | |
download | aur-305ec4124ae4b21a6d29850d2991b0c8b981b1e7.tar.gz |
Bugfix.
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | pentaxpj-filter.install | 32 |
3 files changed, 53 insertions, 10 deletions
@@ -1,22 +1,28 @@ pkgbase = pentaxpj-filter - pkgdesc = Printer filter for Pentax PocketJet 200 and PocketJet II printers. Needed in addition to the PPDs/ files that come with foomatic-db/ CUPS. + pkgdesc = Printer filter for Pentax PocketJet 200 and PocketJet II printers. Needed in addition to the PPDs/ files that come with foomatic-db/ CUPS. Includes printer documentation. pkgver = 1.0.0 - pkgrel = 1 + pkgrel = 3 epoch = 0 url = http://ww1.pragana.net/gdiprinters.html#pentaxpj + install = pentaxpj-filter.install arch = i686 arch = x86_64 license = GPL makedepends = gzip depends = ghostscript optdepends = tk: For GUI to change config file for LPD usage. + provides = pentax-pocketjet-2-manual=2004 backup = etc/pentaxpj.conf source = pentaxpj-1.0.0.tar.gz::http://ww1.pragana.net/pentaxpj-1.0.0.tar.gz source = pentaxpj.conf.a4 source = pentaxpj.conf.letter + source = Pentax_PocketJet_II_and_PocketJet_200_users_guide.pdf::http://www.megatron.fr/imprimantes/pdf/manuels/thermal/pentax/doc_pocketjet_II-200_user_guide_e.pdf + source = pentaxpj-filter.install sha256sums = e1ea36e1cdfcc733c69709717fb1ed97f2fd0f3e3a12197309277007df1b819b sha256sums = 402f62fef43ca1738d7ba8e7729864326ca138fa5a57fb0b46611f05585ed4c4 sha256sums = a2e25b291591b31b215a7001308f76b1ea7ece2eb803a7258f821bae1223c51a + sha256sums = ab714ff7dac4cf61261b63836cc238873936c0816b5978d265acf49ffcb3cfcc + sha256sums = 348c4ba58e0dfaf49db9bee73f55f6ac049d084e9cc19df81950c0cf1f65eecc pkgname = pentaxpj-filter @@ -7,8 +7,8 @@ pkgname="${_pkgname}" epoch=0 _pkgver=1.0.0 pkgver="${_pkgver}" -pkgrel=1 -pkgdesc="Printer filter for Pentax PocketJet 200 and PocketJet II printers. Needed in addition to the PPDs/ files that come with foomatic-db/ CUPS." +pkgrel=3 +pkgdesc="Printer filter for Pentax PocketJet 200 and PocketJet II printers. Needed in addition to the PPDs/ files that come with foomatic-db/ CUPS. Includes printer documentation." arch=('i686' 'x86_64') url="http://ww1.pragana.net/gdiprinters.html#pentaxpj" license=('GPL') @@ -30,9 +30,10 @@ optdepends=( "tk: For GUI to change config file for LPD usage." ) -# provides=( +provides=( # "${_pkgname}=${pkgver}" -# ) + "pentax-pocketjet-2-manual=2004" +) # conflicts=( # "${_pkgname}" @@ -46,18 +47,24 @@ backup=( "etc/pentaxpj.conf" ) +install="${_pkgname}.install" + _target="pentaxpj-${_pkgver}.tar.gz" source=( "${_target}::http://ww1.pragana.net/pentaxpj-${_pkgver}.tar.gz" "pentaxpj.conf.a4" "pentaxpj.conf.letter" + "Pentax_PocketJet_II_and_PocketJet_200_users_guide.pdf::http://www.megatron.fr/imprimantes/pdf/manuels/thermal/pentax/doc_pocketjet_II-200_user_guide_e.pdf" + "${install}" ) sha256sums=( "e1ea36e1cdfcc733c69709717fb1ed97f2fd0f3e3a12197309277007df1b819b" "402f62fef43ca1738d7ba8e7729864326ca138fa5a57fb0b46611f05585ed4c4" "a2e25b291591b31b215a7001308f76b1ea7ece2eb803a7258f821bae1223c51a" + "ab714ff7dac4cf61261b63836cc238873936c0816b5978d265acf49ffcb3cfcc" + "348c4ba58e0dfaf49db9bee73f55f6ac049d084e9cc19df81950c0cf1f65eecc" ) build() { @@ -98,12 +105,10 @@ package() { install -v -D -m644 README "${_docdir}"/README ) - for _docfile in pentaxpj.conf.*; do + for _docfile in pentaxpj.conf.* Pentax_PocketJet_II_and_PocketJet_200_users_guide.pdf; do install -v -D -m644 "${srcdir}/${_docfile}" "${_docdir}/${_docfile}" done - install -v -D -m664 -g lp pentaxpj.conf.a4 "${_etcdir}"/pentaxpj.conf - ( cd "${_docdir}" ln -sv "${_instdirbase}"/test-page.ps.gz . @@ -120,7 +125,7 @@ package() { install -v -d -m755 "${_filterdir}" ( cd "${_filterdir}" - ln -sv "${_instdirbase}"/pentaxpj_sh pentaxpj + ln -sv "${_instdirbase}"/pentaxpj_sh pentaxpj_sh ) install -v -d -m775 -g lp "${_spooldir}" diff --git a/pentaxpj-filter.install b/pentaxpj-filter.install new file mode 100644 index 000000000000..755e801ad427 --- /dev/null +++ b/pentaxpj-filter.install @@ -0,0 +1,32 @@ +post_install() { + cat << EOM + +=== pentaxpj-filter === + +NOTE: In order to use the Pentax PocketJet II/ 200 with CUPS, +after installing the printer in CUPS you most probably need to +modify the printer's PPD file (will be under /etc/cups/ppd/ after +installation in CUPS): + +In the line + *FoomaticRIPCommandLine: "pentaxpj%B" +replace + pentaxpj +with + pentaxpj_sh +(so the line reads like + *FoomaticRIPCommandLine: "pentaxpj_sh%B" +). + +Otherwise, you most probably will get a "Filter failed"-error in CUPS +and /var/log/cups/error.log will show + Process is dying with \"Encountered error Broken pipe during fwrite\" + +=== /pentaxpj-filter === + +EOM +} + +post_upgrade() { + post_install +} |