diff options
author | Franklyn Tackitt | 2017-11-09 12:43:08 -0700 |
---|---|---|
committer | Franklyn Tackitt | 2017-11-09 12:43:08 -0700 |
commit | 685abec3f448361c43f2e9d4240d31b395ae53f2 (patch) | |
tree | 9cd03fb636e34e161da2e71148e0c0253b32e669 | |
parent | 9a52865710713de0d7a2d92d04d68903996314e1 (diff) | |
download | aur-brother-hl5470dw.tar.gz |
Place PPD in /usr/share/cups/model/
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 8 |
3 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,5 @@ +# Generated by mksrcinfo v8 +# Thu Nov 9 19:42:17 UTC 2017 pkgbase = brother-hl5470dw pkgdesc = LPR and CUPS driver for the Brother HL5470DW pkgver = 3.0.0 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..74eb51554b0f --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg +src +*.zip +*.tar* +*.rpm @@ -1,4 +1,5 @@ # Maintainer: Pascal Potvin <pascal.potvin AT gmail DOT com> +# Contributor: A Frederick Christensen <aurlinux@nosocomia.com> pkgname="brother-hl5470dw" pkgver="3.0.0" pkgrel=1 @@ -59,11 +60,18 @@ prepare() { package() { cp -R $srcdir/usr $pkgdir + #We need the .ppd in the right place (expected by the filter) + cp $srcdir/opt/brother/Printers/HL5470DW/cupswrapper/brother-HL-5470DW-cups-en.ppd $pkgdir/usr/share/cups/model/HL5470DW.ppd + #We need to install the filter file to the cups filter path, so the PPD can find it mkdir -p $pkgdir/usr/lib/cups/filter cp $srcdir/opt/brother/Printers/HL5470DW/cupswrapper/brother_lpdwrapper_HL5470DW \ $pkgdir/usr/lib/cups/filter + #Keep /var/spool/lpd locking working correctly + mkdir -p $pkgdir/var/spool/lpd/HL5470DW + chmod 755 $pkgdir/var/spool/lpd/HL5470DW + if [ -d $srcdir/opt ]; then cp -R $srcdir/opt $pkgdir; fi |