diff options
author | Peter Hofmann | 2020-04-04 19:36:25 +0200 |
---|---|---|
committer | Peter Hofmann | 2020-04-04 19:37:57 +0200 |
commit | 551f178f6fe09e2b48f334f517ac41a10b27265e (patch) | |
tree | 640843b3352676acca51361c8b35ee5f475cf00b /PKGBUILD | |
parent | 06ca290472e8053164dc52eac3e46f46e79f13d8 (diff) | |
download | aur-551f178f6fe09e2b48f334f517ac41a10b27265e.tar.gz |
Update upstream URL and add workaround for broken binary
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -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 |