diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..83ca3abdb137 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = brother-hll2460dw + pkgdesc = CUPS driver for HL-L2460DW model. + pkgver = 4.1.0_1 + pkgrel = 1 + url = http://support.brother.com/g/s/id/linux/en + arch = i686 + arch = x86_64 + license = custom:Brother + depends = glibc + depends = bash + depends = perl + optdepends = cups: printing support + optdepends = ghostscript + source = http://download.brother.com/welcome/dlf105969/hll2460dwpdrv-4.1.0-1.i386.rpm + sha256sums = fbf572819a0e5e4869bd338604952ed5cca3192cea6aab5529ca4ddb931bec05 + +pkgname = brother-hll2460dw diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..227df8860a3b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: David Pfefferlé <pfefferle dot david at gmail dot com> + +pkgname=brother-hll2460dw +pkgver=4.1.0_1 +pkgrel=1 +_brotherpkgver=${pkgver:0:$((${#pkgver}-2))} +_brotherrelease=${pkgver:$((${#pkgver}-1))} +_brotherdrivername=HLL2460DW +pkgdesc="CUPS driver for HL-L2460DW model." +arch=('i686' 'x86_64') +url='http://support.brother.com/g/s/id/linux/en' +license=('custom:Brother') +depends=('glibc' 'bash' 'perl') +optdepends=('cups: printing support' + 'ghostscript') +source=("http://download.brother.com/welcome/dlf105969/hll2460dwpdrv-${_brotherpkgver}-${_brotherrelease}.i386.rpm") +sha256sums=('fbf572819a0e5e4869bd338604952ed5cca3192cea6aab5529ca4ddb931bec05') + +package() { +cp -a "$srcdir/var" "$pkgdir" + +install -Dm644 "$srcdir/opt/brother/Printers/${_brotherdrivername}/cupswrapper/brother-${_brotherdrivername}-cups-en.ppd" "$pkgdir/usr/share/cups/model/brother-${_brotherdrivername}-cups-en.ppd" + +install -Dm755 "$srcdir/opt/brother/Printers/${_brotherdrivername}/cupswrapper/lpdwrapper" "$pkgdir/usr/lib/cups/filter/brother_lpdwrapper_${_brotherdrivername}" + +install -Dm755 "$srcdir/opt/brother/Printers/${_brotherdrivername}/cupswrapper/paperconfigml2" "$pkgdir/usr/share/Brother/Printers/$_brotherdrivername/cupswrapper/paperconfigml2" + +install -Dm644 "$srcdir/opt/brother/Printers/${_brotherdrivername}/inf/br${_brotherdrivername}func" "$pkgdir/usr/share/Brother/Printers/${_brotherdrivername}/inf/br${_brotherdrivername}func" +install -Dm644 "$srcdir/opt/brother/Printers/${_brotherdrivername}/inf/br${_brotherdrivername}rc" "$pkgdir/usr/share/Brother/Printers/${_brotherdrivername}/inf/br${_brotherdrivername}rc" +install -Dm755 "$srcdir/opt/brother/Printers/${_brotherdrivername}/inf/setupPrintcap" "$pkgdir/usr/share/Brother/Printers/${_brotherdrivername}/inf/setupPrintcap" + +install -Dm755 "$srcdir/opt/brother/Printers/${_brotherdrivername}/lpd/$CARCH/brprintconflsr3" "$pkgdir/usr/share/Brother/Printers/${_brotherdrivername}/lpd/brprintconflsr3" +install -Dm755 "$srcdir/opt/brother/Printers/${_brotherdrivername}/lpd/$CARCH/rawtobr3" "$pkgdir/usr/share/Brother/Printers/${_brotherdrivername}/lpd/rawtobr3" +install -Dm755 "$srcdir/opt/brother/Printers/${_brotherdrivername}/lpd/lpdfilter" "$pkgdir/usr/share/Brother/Printers/${_brotherdrivername}/lpd/filter_${_brotherdrivername}" + +#symlink in case it needs it in the lpd subdir +ln -s "/usr/share/Brother/Printers/${_brotherdrivername}/inf" "$pkgdir/usr/share/Brother/Printers/${_brotherdrivername}/lpd/inf" + +## copy licenses +install -Dm644 "$srcdir/opt/brother/Printers/${_brotherdrivername}/LICENSE_ENG.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_ENG.txt" +install -Dm644 "$srcdir/opt/brother/Printers/${_brotherdrivername}/LICENSE_JPN.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_JPN.txt" +} + |