summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Kline2016-09-13 23:14:34 -0700
committerMatt Kline2016-09-13 23:14:34 -0700
commit1bfcaa2cd59de52da978fe33e5cf2b50098b1db8 (patch)
treee6076f0921057815669c15ceed663d2f013fbe42
parent0d882532ad7e6a8225b3f994a26f591175d2750b (diff)
downloadaur-1bfcaa2cd59de52da978fe33e5cf2b50098b1db8.tar.gz
Properly package a needed configuration program
Without brprintconf_hl3180cdw, all print jobs are done with default options.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ea8f8d4d565c..e45fdd238308 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Fri Sep 2 15:56:40 UTC 2016
+# Wed Sep 14 06:14:27 UTC 2016
pkgbase = brother-hl3180cdw
pkgdesc = LPR and CUPS driver for the Brother HL-3180CDW
pkgver = 1.1.4
- pkgrel = 1
+ pkgrel = 2
url = http://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=hl3180cdw_us_as
install = brother-hl3180cdw.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 3a74a4c986c9..09ab46d041f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Matt Kline <matt at bitbashing dot io>
pkgname='brother-hl3180cdw'
pkgver=1.1.4
-pkgrel=1
+pkgrel=2
pkgdesc="LPR and CUPS driver for the Brother HL-3180CDW"
arch=('any')
url='http://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=hl3180cdw_us_as'
@@ -34,12 +34,15 @@ prepare() {
}
package() {
- # Copy over drivers and cups wrapper files
+ # Copy over drivers, cups wrapper files, and the config program
mkdir -p "$pkgdir/usr/share"
cp -r "$srcdir/opt/brother/Printers" "$pkgdir/usr/share/brother"
+ cp -r "$srcdir/usr/bin" "$pkgdir/usr/"
+
# Strip out the script we just ran and the PPD
rm "$pkgdir/usr/share/brother/hl3180cdw/cupswrapper/cupswrapperhl3180cdw"
mv "$pkgdir/usr/share/brother/hl3180cdw/cupswrapper/brother_hl3180cdw_printer_en.ppd" ppd_file
+
# Install the PPD, the filter, and the license.
install -m 644 -D ppd_file "$pkgdir/usr/share/cups/model/brother_hl3180cdw_printer_en.ppd"
install -m 755 -D wrapper "$pkgdir/usr/lib/cups/filter/brother_lpdwrapper_hl3180cdw"