diff options
author | Sam Sim | 2019-12-23 18:17:51 +0100 |
---|---|---|
committer | Sam Sim | 2019-12-23 18:17:51 +0100 |
commit | f35e055c482d63205c7165ee065b6b76913009e9 (patch) | |
tree | e611944de01ed5b65879a99c586cc8d762c4a619 | |
download | aur-f35e055c482d63205c7165ee065b6b76913009e9.tar.gz |
Initial push
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2326c96407c2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = brother-mfc-l2730dw + pkgdesc = Brother MFC-L2730DW printer driver + pkgver = 4.0.0 + pkgrel = 1 + url = https://support.brother.com/g/b/producttop.aspx?c=gb&lang=en&prod=mfcl2730dw_us_eu_as + arch = i686 + arch = x86_64 + license = GPL + depends = cups + depends = perl + source = https://download.brother.com/welcome/dlf103528/mfcl2730dwpdrv-4.0.0-1.i386.deb + sha256sums = fe10170560c4c44471c368a6129ddd61138921004b7abd0b3633e26b2a8a71d6 + +pkgname = brother-mfc-l2730dw + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..529f26d4848d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Sam Simons <contact at sam-simons dot nl> ) +# (Based on brother-mfc-l2713dw package by Angus Gratton) +pkgname=brother-mfc-l2730dw +pkgver=4.0.0 +pkgrel=1 +pkgdesc='Brother MFC-L2730DW printer driver' +arch=('i686' 'x86_64') +url='https://support.brother.com/g/b/producttop.aspx?c=gb&lang=en&prod=mfcl2730dw_us_eu_as' +license=('GPL') +depends=('cups' 'perl') +source=(https://download.brother.com/welcome/dlf103528/mfcl2730dwpdrv-4.0.0-1.i386.deb) +sha256sums=('fe10170560c4c44471c368a6129ddd61138921004b7abd0b3633e26b2a8a71d6') + +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/MFCL2730DW/cupswrapper/lpdwrapper" + sed -i 's|\\\/opt\\\/|\\\/usr\\\/|' "$pkgdir/usr/share/brother/Printers/MFCL2730DW/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/MFCL2730DW/cupswrapper/lpdwrapper" "$pkgdir/usr/lib/cups/filter/brother_lpdwrapper_MFCL2730DW" + + # symlink for the PPD + install -d "$pkgdir/usr/share/cups/model/" + ln -s "/usr/share/brother/Printers/MFCL2730DW/cupswrapper/brother-MFCL2730DW-cups-en.ppd" "$pkgdir/usr/share/cups/model/" + + # a couple architecture-specific symlinks + ln -s "/usr/share/brother/Printers/MFCL2730DW/lpd/$CARCH/brprintconflsr3" "$pkgdir/usr/share/brother/Printers/MFCL2730DW/lpd/" + ln -s "/usr/share/brother/Printers/MFCL2730DW/lpd/$CARCH/rawtobr3" "$pkgdir/usr/share/brother/Printers/MFCL2730DW/lpd/" + + # symlink for inf because it tries to execute it there + ln -s "/usr/share/brother/Printers/MFCL2730DW/inf" "$pkgdir/usr/share/brother/Printers/MFCL2730DW/lpd/" +} |