diff options
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 24 insertions, 9 deletions
@@ -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 @@ -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 |