blob: 36eec8f44bfd2f1b87093377820e54542b62b638 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
# Contributor: cdfk <cdfk1981-at-gmail.com>
set -u
pkgname='brother-lpr-drivers-laser'
pkgver='2.0.1_3_0ubuntu5'
pkgrel='2'
pkgdesc='LPR drivers for DCP-7010 DCP-7020 DCP-7025 DCP-8060 DCP-8065DN FAX-2820 FAX-2920 HL-2030 HL-2040 HL-2070N HL-5240 HL-5250DN HL-5270DN HL-5280DW MFC-7220 MFC-7225N MFC-7420 MFC-7820N MFC-8460N MFC-8660DN MFC-8860DN MFC-8870DW'
arch=('i686' 'x86_64')
url='http://solutions.brother.com/linux/en_us/index.html'
license=('GPL' 'custom:brother commercial license')
depends=('brother-lpr-drivers-common' 'a2ps' 'cups')
depends_x86_64=('lib32-glibc')
_srcdir='Arch'
source=('0000-MFC-7820N-pstops.patch') # https://aur.archlinux.org/cgit/aur.git/tree/brother-mfc-7840w.patch?h=brother-mfc-7840w
source_i686=("http://mirrors.kernel.org/ubuntu/pool/multiverse/b/${pkgname}/${pkgname}_${pkgver//_/-}_i386.deb")
source_x86_64=("http://mirrors.kernel.org/ubuntu/pool/multiverse/b/${pkgname}/${pkgname}_${pkgver//_/-}_amd64.deb")
md5sums=('e44951445d4c4dfc776cde1b10406beb')
md5sums_i686=('cf0120479d74d3be6796ae4d804e7b0d')
md5sums_x86_64=('ac86b51f47a344a1961ff13ff3cfe775')
sha256sums=('e1f8625f45b27c7ca1d2366660398eb7f2baa79c8e6e926a247a9a232984bc6a')
sha256sums_i686=('fba405edd53dedffed9beb604d9f301f0b241630badaa9f340387866563d2713')
sha256sums_x86_64=('bd35371d79dd9ea02e8563be7b429f43acf9fc8d7bf01a187d8413eb16cfa221')
prepare() {
set -u
mkdir "${_srcdir}"
cd "${_srcdir}"
bsdtar -xf "${srcdir}/data.tar".?z
# Better implementation and removes quoting error
ln -sf '/usr/bin/brprintconflsr2' 'usr/bin/brprintconfiglpr2'
if ! :; then
# I suspect all printers will need this so
# convert single printer patch into mega patch for all printers
cp /dev/null "${srcdir}/0000-mega-pstops.patch"
local _f
for _f in usr/Brother/lpd/filter*; do
sed -e "/^\(diff\|+++\|---\)/ s:MFC7820N:${_f##*/filter}:g" "${srcdir}/0000-MFC-7820N-pstops.patch" >> "${srcdir}/0000-mega-pstops.patch"
done
patch --no-backup-if-mismatch -r - -Nup1 -i "${srcdir}/0000-mega-pstops.patch"
else
# cp -pr "${srcdir}/${_srcdir}"{,.orig-0000}
#diff -Naru3 Arch{.orig-0000,} > '0000-MFC-7820N-pstops.patch'
patch -Nup1 -i "${srcdir}/0000-MFC-7820N-pstops.patch"
fi
set +u
}
package() {
set -u
mv Arch/* "${pkgdir}"
set +u
}
set +u
|