summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordw2015-08-05 13:08:42 +0200
committerdw2015-08-05 13:08:42 +0200
commitd017b797878f65faac457038f7846103db7343c2 (patch)
tree17a42e5d20769c0a7493c98184fafe5025387276
parent62552e4407216ee7f37728ac665fd03033e52b38 (diff)
downloadaur-brother-mfc-l2720dw.tar.gz
Added .install script
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD1
-rw-r--r--brother-mfc-l2720dw.install10
3 files changed, 12 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 73823ba142ab..1db680c39242 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = brother-mfc-l2720dw
pkgver = 3.2.0
pkgrel = 1
url = http://solutions.brother.com/linux/en_us/
+ install = brother-mfc-l2720dw.install
arch = i686
arch = x86_64
license = custom:brother commercial license
diff --git a/PKGBUILD b/PKGBUILD
index 683109eb9e3b..03ceee68490f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,6 +8,7 @@ arch=("i686" "x86_64")
license=('custom:brother commercial license')
depends=("cups")
depends_x86_64=('lib32-glibc')
+install="$pkgname.install"
source=(
"http://download.brother.com/welcome/dlf101799/mfcl2720dwlpr-$pkgver-$pkgrel.i386.rpm"
"http://download.brother.com/welcome/dlf101800/mfcl2720dwcupswrapper-$pkgver-$pkgrel.i386.rpm"
diff --git a/brother-mfc-l2720dw.install b/brother-mfc-l2720dw.install
new file mode 100644
index 000000000000..93fc2470bf61
--- /dev/null
+++ b/brother-mfc-l2720dw.install
@@ -0,0 +1,10 @@
+post_install() {
+ post_upgrade;
+}
+
+post_upgrade() {
+ echo "Restart CUPS (org.cups.cupsd.service) in order to load the new files."
+ echo "Register the new print at \"http://localhost:631/\"."
+ echo -e "\n To avoid errors like \"Unable to locate printer...\" when printing via wifi:"
+ echo " Add the printer with its socked address \"socket://<printer ip>:9100\""
+}