summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCebtenzzre2018-11-29 22:28:09 -0500
committerCebtenzzre2018-11-29 22:28:09 -0500
commit06d7aa231c101784b83856277991fd354d118f3e (patch)
tree80a2b3453a3cc5c55b94a93385136bef41be627d /PKGBUILD
parent01a57cdab131a2609b1a2d317583ac52b4d22fc5 (diff)
downloadaur-06d7aa231c101784b83856277991fd354d118f3e.tar.gz
Use sed to avoid multiline perl; fix lpadmin removal
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9e32cec365d..de5e8a129aa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,7 +26,8 @@ sha256sums=('f0ef7debe2ce49624c9fed63f5338267195430577afe1e97bdfb14bb35a325b1'
prepare() {
install -d usr/share/cups/model usr/lib/cups/filter
wrapper=opt/brother/Printers/mfc${_model}/cupswrapper/cupswrappermfc${_model}
- perl -i -0777spe 's/^sleep(?s:.)*//gm;s#/(usr|opt)#$srcdir/$1#g;s#/model/Brother#/model#g;s/^lpadmin//gm' -- -srcdir="$srcdir" "$wrapper"
+ sed -i '/^ *lpadmin/d;/^sleep/Q' "$wrapper"
+ perl -i -spe 's#/(usr|opt)#$srcdir/$1#g;s#/model/Brother#/model#g' -- -srcdir="$srcdir" "$wrapper"
./"$wrapper"
rm "$wrapper"
perl -i -spe 's/$srcdir//' -- -srcdir="$srcdir" usr/lib/cups/filter/*lpdwrapper*