- Edited
Not all packages for all printers are present in the software center and because I prefer install with the packages, I created the package in my local repository by copying the similar ones (of Brother), this is the package.yml:
name : brother-mfc9140cdn
version : 1.1.2
release : 1
source :
- https://download.brother.com/welcome/dlf100404/mfc9140cdnlpr-1.1.2-1.i386.rpm : c4a9dafe1ba141c801f9ae68e0297cbfed424bfb0dc2232e2515bd33583db2ba
- https://download.brother.com/welcome/dlf100406/mfc9140cdncupswrapper-1.1.4-0.i386.rpm : dadbb924f2d8eebe315397dd8b2ed104b36467177f192b11feb9096de3ef5a95
homepage : https://support.brother.com/g/b/downloadhowto.aspx?c=it&lang=it&prod=mfc9140cdn_eu_as_cn&os=127&dlid=dlf100406_000&flang=4&type3=560
license :
- Distributable
- GPL-2.0-or-later
component : drivers.printer
extract : no
strip : no
summary : Printer driver for Brother MFC-9140cdn
description:
Printer driver for Brother MFC-9140cdn.
Note that some portions are binary and provided for hardware enablement so may not meet typical Solus packaging standards for paths.
builddeps :
- rpm
rundeps :
- a2ps
- glibc-32bit
- ghostscript
- psutils
setup : |
# Extract rpms
for i in $sources/*.rpm; do
rpm2cpio ${i} | cpio -idmv
done
install : |
install -d -m 00755 $installdir
# Install rpm files
mv opt $installdir/
# Install required cups files
install -d -m 00755 $installdir/usr/share/cups/model
install -d -m 00755 $installdir/%libdir%/cups/filter
ln -s /opt/brother/Printers/mfc9140cdn/cupswrapper/brother_mfc9140cdn_printer_en.ppd $installdir/usr/share/cups/model/brother_mfc9140cdn_printer_en.ppd
ln -s /opt/brother/Printers/mfc9140cdn/lpd/filtermfc9140cdn $installdir/%libdir%/cups/filter/filtermfc9140cdn
ln -s /opt/brother/Printers/mfc9140cdn/cupswrapper/cupswrappermfc9140cdn $installdir/%libdir%/cups/filter/cupswrappermfc9140cdn
I just changed the references and links to point to my printer model. However, I think that the advantage over the driver less solution is minimal, I use both.