blob: 3892cd64e4de2de20343fdd4486db42867bee86f (
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
|
# Maintainer: sdw113322 <sdw113322@gmail.com>
# Original AUR [brother-mfc-j220] package by Franz Rogar <franzrogar@gmail.com>
# Original AUR [brother-mfc-j220] package maintained by auruser <>
# Original AUR [brother-hll2300d] package maintained by Mykola Bespaliuk (kolkabes [at] gmail [dot] com)
pkgname="brother-mfc-255cw"
_model="255cw"
pkgver="1.1.3"
pkgrel=3
source_pkgrel=1
pkgdesc="LPR and CUPS driver for the Brother MFC-255CW"
url="http://solutions.brother.com/linux/en_us/"
license=('custom:brother commercial license')
arch=('i686' 'x86_64')
depends=('cups' 'perl' 'bash' 'ghostscript')
if test "$CARCH" == x86_64; then
depends+=('lib32-glibc')
fi
install="$pkgname.install"
source=("http://www.brother.com/pub/bsc/linux/dlf/mfc255cwlpr-$pkgver-$source_pkgrel.i386.rpm"
"http://www.brother.com/pub/bsc/linux/dlf/mfc255cwcupswrapper-$pkgver-$source_pkgrel.i386.rpm"
)
md5sums=('e36d4a5cebc93b95e2699e82737b25b3'
'5e6196f096a8bf915efbcb183e53c117'
)
prepare() {
echo "unpacking"
}
package() {
mkdir -p "${pkgdir}/usr/bin"
install -m 0755 -o root -g root "${srcdir}/usr/bin/brprintconf_mfc255cw" "${pkgdir}/usr/bin/brprintconf_mfc255cw"
mkdir -p "${pkgdir}/opt"
cp -R "${srcdir}/opt/brother" "${pkgdir}/opt/brother"
mkdir -p "${pkgdir}/usr/lib/cups/filter"
echo "#! /opt/brother/Printers/mfc255cw/lpd/filtermfc255cw" > "${srcdir}/filter-shim"
install -m 0755 -o root -g root "${srcdir}/filter-shim" "${pkgdir}/usr/lib/cups/filter/brlpdwrappermfc255cw"
mkdir -p "${pkgdir}/usr/share/ppd/cupsfilters"
install -m 0644 -o root -g root "${srcdir}/opt/brother/Printers/mfc255cw/cupswrapper/brother_mfc255cw_printer_en.ppd" "${pkgdir}/usr/share/ppd/cupsfilters"
}
|