summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Lau2017-05-20 14:59:10 +0200
committerSebastian Lau2017-05-20 14:59:10 +0200
commitc6a61a229a07e58a6a464ff13d778adc03c1d838 (patch)
tree88d55ec6e49040880683dec736b1a6f8e767ae7a
parent31503b12f85c2cf82c04a2d83d09b4e7e3befe73 (diff)
downloadaur-brother-hl3040cn.tar.gz
Patch permissions
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7f15771a26a..c966954dcb5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sat Sep 17 13:10:53 UTC 2016
+# Sat May 20 12:59:04 UTC 2017
pkgbase = brother-hl3040cn
pkgdesc = LPR and CUPS driver for the Brother HL3040cn
pkgver = 1.1.2
- pkgrel = 3
+ pkgrel = 4
url = http://solutions.brother.com/linux/en_us/
install = brother-hl3040cn.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 0e0386aeabc..1ee57fce5b6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Libernux <dutchman55@gmx.com>
pkgname="brother-hl3040cn"
pkgver="1.1.2"
-pkgrel=3
+pkgrel=4
pkgdesc="LPR and CUPS driver for the Brother HL3040cn"
arch=('i686' 'x86_64')
url="http://solutions.brother.com/linux/en_us/"
@@ -56,7 +56,11 @@ prepare() {
}
package() {
cp -R $srcdir/usr $pkgdir
- if [ -d $srcdir/opt ]; then cp -R $srcdir/opt $pkgdir; fi
+ if [ -d $srcdir/opt ]; then
+ cp -R $srcdir/opt $pkgdir
+ chown root:lp $srcdir/opt/brother/Printers/hl3040cn/inf/
+ chmod g+w $srcdir/opt/brother/Printers/hl3040cn/inf/
+ fi
install -m 644 -D cupswrapper-license.txt $pkgdir/usr/share/licenses/${pkgname}/cupswrapper-licence.txt
install -m 644 -D lpr-license.txt $pkgdir/usr/share/licenses/${pkgname}/lpr-licence.txt
}