diff options
author | Robin van der Kuil | 2018-12-09 11:08:18 +0100 |
---|---|---|
committer | Robin van der Kuil | 2018-12-09 11:08:18 +0100 |
commit | 91bad364724232ff10bd69f53a269f6b0ee3a465 (patch) | |
tree | 3459dca0fde278eddf652f5c74b53bfe0d4a708e | |
download | aur-brother-dcpl2550dn.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2fa84d1b3763 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = brother-dcpl2550dn + pkgdesc = Brother DCP-L2550DN lpr driver and CUPS wrapper + pkgver = 4.0.0_1 + pkgrel = 1 + url = https://support.brother.com/g/b/downloadend.aspx?c=eu_ot&lang=en&prod=dcpl2550dn_eu&os=127&dlid=dlf103519_000&flang=4&type3=10282 + arch = i686 + arch = x86_64 + license = GPL2 + license = custom:brother + depends = cups + optdepends = brscan4: scanner support. + source = https://download.brother.com/welcome/dlf103519/dcpl2550dnpdrv-4.0.0-1.i386.rpm + sha256sums = 88a2aa9fa5e9b441166983a032cb5e63681d4956b3ee6b84a1f777f76065b575 + +pkgname = brother-dcpl2550dn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20037564a326 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +#Maintainer: Robin van der Kuil <r.vanderkuil@gmail.com> + +pkgname=brother-dcpl2550dn +pkgver=4.0.0_1 +pkgrel=1 +pkgdesc="Brother DCP-L2550DN lpr driver and CUPS wrapper" +arch=('i686' 'x86_64') +url="https://support.brother.com/g/b/downloadend.aspx?c=eu_ot&lang=en&prod=dcpl2550dn_eu&os=127&dlid=dlf103519_000&flang=4&type3=10282" +license=('GPL2' 'custom:brother') +depends=('cups') +optdepends=('brscan4: scanner support.') +source=( + "https://download.brother.com/welcome/dlf103519/dcpl2550dnpdrv-${pkgver/_/-}.i386.rpm" +) +sha256sums=( + '88a2aa9fa5e9b441166983a032cb5e63681d4956b3ee6b84a1f777f76065b575' +) + +prepare() { + sed -i -e '75c\my $basedir = "/opt/brother/Printers/DCPL2550DN";' \ + ${srcdir}/opt/brother/Printers/DCPL2550DN/cupswrapper/lpdwrapper +} + +package() { + mkdir -p ${pkgdir}/usr/share/cups/model/Brother + mkdir -p ${pkgdir}/usr/lib/cups/filter + cp ${srcdir}/opt/brother/Printers/DCPL2550DN/cupswrapper/brother-DCPL2550DN-cups-en.ppd ${pkgdir}/usr/share/cups/model/Brother + cp ${srcdir}/opt/brother/Printers/DCPL2550DN/cupswrapper/lpdwrapper ${pkgdir}/usr/lib/cups/filter/brother_lpdwrapper_DCPL2550DN + + mkdir -p ${pkgdir}/opt/brother/Printers/DCPL2550DN/lpd/ + cp -r ${srcdir}/opt/brother/Printers/DCPL2550DN/inf ${pkgdir}/opt/brother/Printers/DCPL2550DN/ + cp ${srcdir}/opt/brother/Printers/DCPL2550DN/lpd/lpdfilter ${pkgdir}/opt/brother/Printers/DCPL2550DN/lpd/ + cp ${srcdir}/opt/brother/Printers/DCPL2550DN/lpd/${CARCH}/* ${pkgdir}/opt/brother/Printers/DCPL2550DN/lpd/ + cp -r ${srcdir}/var ${pkgdir}/ +} + + |