summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hofmann2020-04-04 19:36:25 +0200
committerPeter Hofmann2020-04-04 19:37:57 +0200
commit551f178f6fe09e2b48f334f517ac41a10b27265e (patch)
tree640843b3352676acca51361c8b35ee5f475cf00b
parent06ca290472e8053164dc52eac3e46f46e79f13d8 (diff)
downloadaur-551f178f6fe09e2b48f334f517ac41a10b27265e.tar.gz
Update upstream URL and add workaround for broken binary
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD24
2 files changed, 24 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2ced1ad9d289..1de8d79cd2d3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,15 @@
-# Generated by mksrcinfo v8
-# Sat Jun 9 08:09:22 UTC 2018
pkgbase = epson-alc1100-filter
pkgdesc = Print driver for Epson ALC1100 colour laser printer
pkgver = 1.2
- pkgrel = 2
+ pkgrel = 3
url = http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
arch = i686
arch = x86_64
license = custom:EAPL
+ makedepends = coreutils
optdepends = cups: printing support
- source = http://a1227.g.akamai.net/f/1227/40484/1d/download.ebz.epson.net/dsc/f/01/00/01/58/64/87f759442ccaa26a3be70620d1aab13e7f713d60/Epson-ALC1100-filter-1.2.tar.gz
- md5sums = 3263918e8870bd3bd2b63ad32ff12822
+ source = http://download.ebz.epson.net/dsc/f/01/00/01/58/64/87f759442ccaa26a3be70620d1aab13e7f713d60/Epson-ALC1100-filter-1.2.tar.gz
+ md5sums = 59d2925146af0e5f9770d600a8dea173
depends_i686 = libstdc++5
depends_i686 = ghostscript
depends_i686 = psutils
diff --git a/PKGBUILD b/PKGBUILD
index 3a2ac4d9c424..b25ef8591c25 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,17 +3,33 @@
pkgname=epson-alc1100-filter
pkgver=1.2
-pkgrel=2
+pkgrel=3
pkgdesc="Print driver for Epson ALC1100 colour laser printer"
arch=('i686' 'x86_64')
url="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
license=('custom:EAPL')
depends_i686=('libstdc++5' 'ghostscript' 'psutils' 'sed' 'grep' 'gawk' 'bc')
depends_x86_64=('lib32-libstdc++5' 'ghostscript' 'psutils' 'sed' 'grep' 'gawk' 'bc')
-makedepends=()
+makedepends=('coreutils')
optdepends=('cups: printing support')
-source=("http://a1227.g.akamai.net/f/1227/40484/1d/download.ebz.epson.net/dsc/f/01/00/01/58/64/87f759442ccaa26a3be70620d1aab13e7f713d60/Epson-ALC1100-filter-${pkgver}.tar.gz")
-md5sums=('3263918e8870bd3bd2b63ad32ff12822')
+source=("http://download.ebz.epson.net/dsc/f/01/00/01/58/64/87f759442ccaa26a3be70620d1aab13e7f713d60/Epson-ALC1100-filter-${pkgver}.tar.gz")
+md5sums=('59d2925146af0e5f9770d600a8dea173')
+
+build() {
+ cd $srcdir/Epson-ALC1100-filter-$pkgver
+
+ # In January 2020, upstream broke this binary. They attempted to
+ # replace all occurrences of "pipsplus-bugs@avasys.jp" with
+ # "linux-printer@epson.jp". This doesn't work very well in a binary,
+ # since the strings have different lengths. We're undoing this
+ # change now.
+ #
+ # md5sum of working (unstripped) binary: 8c24e07a7dd3bca8b7b1e52ad6e6e76b
+ dd if=alc1100 of=alc1100.tmp bs=1 count=$((0x6FE04))
+ printf 'pipsplus-bugs@avasys.jp' >>alc1100.tmp
+ dd if=alc1100 of=alc1100.tmp bs=1 skip=$((0x6FE1A)) oflag=append conv=notrunc
+ mv alc1100.tmp alc1100
+}
package() {
cd $srcdir/Epson-ALC1100-filter-$pkgver