summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffbd3ad9a37187702346f15a642efb81b4ef3b6d (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
# Maintainer: Steven Hicks <site-brhll32810aur@stevenkhicks.de>
# based on https://aur.archlinux.org/packages/brother-mfc-l2710dw/
pkgname='brother-hll3280cdw'
pkgver='3.5.1'
pkgrel=2    
pkgdesc='LPR and CUPS driver for the Brother HL-L3280CDW'
url='https://support.brother.com/g/b/downloadend.aspx?c=us&lang=en&prod=hll3280cdw_us_as&os=127&dlid=dlf105746_000&flang=4&type3=10282'
arch=('i686' 'x86_64')
license=('custom:Brother commercial license')
depends=('cups' 'ghostscript' 'perl')
depends_x86_64=('lib32-glibc')
install="$pkgname.install"
source=("https://download.brother.com/welcome/dlf105746/hll3280cdwpdrv-$pkgver-1.i386.rpm")
sha256sums=('798a6cbda2a21d7046c5e0a7a68a4aff16e0fbd75982d93ac2a74462efbbc8af')

package() {
	_model="hll3280cdw"
	mkdir -p "$pkgdir/usr/share"

    # we let them put it in their pr    eferred location and just symlink it
    cp -R "$srcdir/opt" "$pkgdir"

    ln -s "/opt/brother/Printers/$_model/lpd/$CARCH/br${_model}filter" "$pkgdir/opt/brother/Printers/$_model/lpd/"

    # symlink for lpdwrapper so it correctly figures out the printer model from the path
    install -d "$pkgdir/usr/lib/cups/filter/"
    ln -s "/opt/brother/Printers/$_model/cupswrapper/brother_lpdwrapper_$_model" "$pkgdir/usr/lib/cups/filter/brother_lpdwrapper_$_model"

    # symlink for the PPD
    install -d "$pkgdir/usr/share/cups/model/"
    ln -s "/opt/brother/Printers/$_model/cupswrapper/brother_$_model_printer_en.ppd" "$pkgdir/usr/share/cups/model/"
}