diff options
author | Angus Gratton | 2018-03-25 15:10:59 +1100 |
---|---|---|
committer | Angus Gratton | 2018-03-25 15:22:30 +1100 |
commit | a619f397fa4326bbc21cbecd44c5f1ab1f10ad0b (patch) | |
tree | c4a4afe35b6916585c286e24c56b64eb5c775e14 | |
download | aur-a619f397fa4326bbc21cbecd44c5f1ab1f10ad0b.tar.gz |
Initial working PKGBUILD
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ddf62e0b2be2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = brother-mfc-l2713dw + pkgdesc = Brother MFC-L2713DW CUPS driver + pkgver = 4.0.0 + pkgrel = 1 + url = http://www.brother.com + arch = i686 + arch = x86_64 + license = GPL + depends = cups + depends = perl + source = http://download.brother.com/welcome/dlf103523/mfcl2713dwpdrv-4.0.0-1.i386.rpm + sha256sums = 55dafceb443cd4b0b7558652e4c30cdc420f1706756c4e0ae09de88644224aa3 + +pkgname = brother-mfc-l2713dw + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2c3e14ea0e7c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Angus Gratton <gus at projectgus dot com> ) +# (Based on brother-hll2395dw package by Daniel Wyatt) +pkgname=brother-mfc-l2713dw +pkgver=4.0.0 +pkgrel=1 +pkgdesc='Brother MFC-L2713DW CUPS driver' +arch=('i686' 'x86_64') +url='http://www.brother.com' +license=('GPL') +depends=('cups' 'perl') +source=(http://download.brother.com/welcome/dlf103523/mfcl2713dwpdrv-$pkgver-1.i386.rpm) +sha256sums=('55dafceb443cd4b0b7558652e4c30cdc420f1706756c4e0ae09de88644224aa3') + +package() { + # using /usr/share instead of /opt + mkdir -p "$pkgdir/usr/share" + cp -R "$srcdir/opt/brother" "$pkgdir/usr/share" + sed -i 's|\\\/opt\\\/|\\\/usr\\\/|' "$pkgdir/usr/share/brother/Printers/MFCL2713DW/cupswrapper/lpdwrapper" + sed -i 's|\\\/opt\\\/|\\\/usr\\\/|' "$pkgdir/usr/share/brother/Printers/MFCL2713DW/lpd/lpdfilter" + + # /etc/printcap is managed by cups + find "$pkgdir" -type f -name 'setupPrintcap*' -delete + + # symlink for lpdwrapper so it correctly figures out the printer model from the path + install -d "$pkgdir/usr/lib/cups/filter/" + ln -s "/usr/share/brother/Printers/MFCL2713DW/cupswrapper/lpdwrapper" "$pkgdir/usr/lib/cups/filter/brother_lpdwrapper_MFCL2713DW" + + # symlink for the PPD + install -d "$pkgdir/usr/share/cups/model/" + ln -s "/usr/share/brother/Printers/MFCL2713DW/cupswrapper/brother-MFCL2713DW-cups-en.ppd" "$pkgdir/usr/share/cups/model/" + + # a couple architecture-specific symlinks + ln -s "/usr/share/brother/Printers/MFCL2713DW/lpd/$CARCH/brprintconflsr3" "$pkgdir/usr/share/brother/Printers/MFCL2713DW/lpd/" + ln -s "/usr/share/brother/Printers/MFCL2713DW/lpd/$CARCH/rawtobr3" "$pkgdir/usr/share/brother/Printers/MFCL2713DW/lpd/" + + # symlink for inf because it tries to execute it there + ln -s "/usr/share/brother/Printers/MFCL2713DW/inf" "$pkgdir/usr/share/brother/Printers/MFCL2713DW/lpd/" +} + |