diff options
-rw-r--r-- | PKGBUILD | 13 | ||||
-rw-r--r-- | fix_lp.patch | 11 |
2 files changed, 22 insertions, 2 deletions
@@ -10,8 +10,17 @@ license=('custom:brother') depends=('cups') install="$pkgname.install" arch=('x86_64') -source=("https://download.brother.com/welcome/dlf105352/dcpj1140dwpdrv-3.5.0-1.i386.rpm") -sha256sums=('860d0e1a7203cb692c70dc47e8dbecdbb5541a6ae0dc115baf2943ffe44f7a14') +source=( + "fix_lp.patch" \ +"https://download.brother.com/welcome/dlf105352/dcpj1140dwpdrv-3.5.0-1.i386.rpm" +) +sha256sums=('0904d8229e550baac634804508a9f4ebee967dc015c366973986476513955fbc' +'860d0e1a7203cb692c70dc47e8dbecdbb5541a6ae0dc115baf2943ffe44f7a14') + +build() { + cd "$srcdir" + patch -Np0 < fix_lp.patch +} package() { diff --git a/fix_lp.patch b/fix_lp.patch new file mode 100644 index 000000000000..f9484ad597ae --- /dev/null +++ b/fix_lp.patch @@ -0,0 +1,11 @@ +--- opt/brother/Printers/dcpj1140dw/inf/setupPrintcapij.old 2023-12-19 12:50:07.256638801 +0100 ++++ opt/brother/Printers/dcpj1140dw/inf/setupPrintcapij 2023-12-19 12:53:25.375201058 +0100 +@@ -34,7 +34,7 @@ + if [ ! -d $SPOOLER_NAME ]; then + mkdir $SPOOLER_NAME + fi +- chown lp $SPOOLER_NAME ++ chown root $SPOOLER_NAME + chgrp lp $SPOOLER_NAME + chmod 700 $SPOOLER_NAME + |