Talk:Packaging Brother printer drivers

From ArchWiki

Brother printer drivers install to a different directory than some programs look in. Adding symlinks corrects this issue.

When following this guide I was experiencing issues where the drivers were not being detected by various configuration applications such as GNOME Settings or system-config-printers.

My/the arch system seems to look for drivers in both /usr/share/cups/model/... and /usr/lib/cups/filter/... directories. I double checked other brother printer PKGBUILDs I found on the AUR and confirmed this package() structure (for the CUPS wrapper).

package() {

   tar -xf data.tar.gz -C "${pkgdir}"
   mkdir -p -m 755 "${pkgdir}"/usr/share/cups/model
   mkdir -p -m 755 "${pkgdir}"/usr/lib/cups/filter
   ln -s /opt/brother/Printers/[MODEL]/cupswrapper/[MODEL]-cups-en.ppd "${pkgdir}"/usr/share/cups/model/[MODEL]-cups-en.ppd
   ln -s /opt/brother/Printers/[MODEL]/cupswrapper/brother_ldpwrapper_[MODEL] "%{pkgdir}"/usr/lib/cups/filter/brother_lpdwrapper_[MODEL]

}

Hope this helps.

—This unsigned comment is by IrreleventIdiot (talk) 2023-02-13T21:15:54. Please sign your posts with ~~~~!