blob: 0d9dfb43d4292d855631685045b8b1ff7177c22f (
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
|
# Maintainer: Michiru Saito <urihcim at gmail dot com>
pkgname=brother-mfc-930cdn
pkgver=1.1.2_2
pkgrel=4
pkgdesc="LPR and CUPS driver for the Brother MFC-930CDN / MFC-930CDWN"
arch=('i686' 'x86_64')
url='http://support.brother.co.jp/j/b/downloadlist.aspx?c=jp&lang=ja&prod=mfc930cdn&os=127'
license=('custom')
depends=('cups')
depends_x86_64=('lib32-glibc')
source=("http://download.brother.com/welcome/dlf100725/mfc930cdnlpr-${pkgver//_/-}.i386.rpm"
"http://download.brother.com/welcome/dlf100727/mfc930cdncupswrapper-${pkgver//_/-}.i386.rpm"
'http://support.brother.co.jp/j/s/support/agreement/agree_lpr.html'
'http://support.brother.co.jp/j/s/support/agreement/agree_gpl.html')
md5sums=('ba35077822b44dddd963db42d1c4edc9'
'a3a9a6dbc167c183184a2e8c3a4a4789'
'54e299b76523231f07df19370317be2a'
'82ac408349dd57fdafc77adf4ffe34c9')
prepare() {
mkdir -p ./usr/share/cups/model
mkdir -p ./usr/lib/cups/filter
_wrapper=./usr/local/Brother/Printer/*/cupswrapper/cupswrapper*
sed -i \
-e '/stop\|restart\|sleep\|lpadmin/s/^/: /' \
-e 's@/usr@./usr@g' \
-e 's/lpinfo/echo/g' \
-e 's/"`/"\\`/g' \
-e 's/`"/\\`"/g' \
$_wrapper
$_wrapper
rm $_wrapper
find . -type f -name 'setupPrintcap*' -delete
sed -i 's@\./@/@' ./usr/lib/cups/filter/*lpdwrapper*
sed -i 's@/usr/local/@/usr/share/@g' $(grep -lr '/usr/local/Brother' ./)
}
package() {
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
cp -Rp "$srcdir/usr/bin" "$pkgdir/usr"
cp -Rp "$srcdir/usr/lib" "$pkgdir/usr"
cp -Rp "$srcdir/usr/share/cups" "$pkgdir/usr/share"
cp -Rp "$srcdir/usr/local/Brother" "$pkgdir/usr/share/Brother"
install -m 644 agree_*.html "$pkgdir/usr/share/licenses/$pkgname"
}
|