driver for the Brother HL-L3280CDW
mostly works, though I can't seem to change some options. copied from examples in the brother-overlay
This commit is contained in:
parent
b17a43bf1f
commit
e0b429e52e
1
net-print/brother-hll3280cdw-bin/Manifest
Normal file
1
net-print/brother-hll3280cdw-bin/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST hll3280cdwpdrv-3.5.1-1.i386.rpm 137992 BLAKE2B c671f9409607208940dc384ea4c65b45d74fa9dbf1d1e0ff8d73e674f2ddf8a21f86a2e83b13c4ced43c2c06f4861959190abf29a04571f45f7a9cc65368fde1 SHA512 c3209cf709b2103b1026292ffa4c9c2a91f5de653cd9720556f48f438a6782050961e3a6a186575d6442658a00f375de9092700f2f5378cc7e70fb26177d7f45
|
@ -0,0 +1,49 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit rpm multilib
|
||||
|
||||
DESCRIPTION="Brother printer driver for HL-L3280CDW"
|
||||
|
||||
HOMEPAGE="http://support.brother.com"
|
||||
|
||||
SRC_URI="https://download.brother.com/welcome/dlf105746/hll3280cdwpdrv-3.5.1-1.i386.rpm"
|
||||
|
||||
LICENSE="brother-eula"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="amd64"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
DEPEND="net-print/cups"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
rpm_unpack ${A}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
has_multilib_profile && ABI=x86
|
||||
|
||||
dosbin "${WORKDIR}/opt/brother/Printers/hll3280cdw/lpd/x86_64/brprintconf_hll3280cdw"
|
||||
dobin "${WORKDIR}/opt/brother/Printers/hll3280cdw/lpd/x86_64/brprintconf_hll3280cdw"
|
||||
|
||||
cp -r opt "${D}" || die
|
||||
|
||||
mkdir -p "${D}/usr/libexec/cups/filter" || die
|
||||
( cd "${D}/usr/libexec/cups/filter/" && ln -s ../../../../opt/brother/Printers/hll3280cdw/lpd/filter_hll3280cdw brother_lpdwrapper_hll3280cdw ) || die
|
||||
( cd "${D}/usr/libexec/cups/filter/" && sed -i 's/my $PRINTER = $0/my $PRINTER = Cwd::realpath ($0)/' ../../../../opt/brother/Printers/hll3280cdw/lpd/filter_hll3280cdw ) || die
|
||||
|
||||
mkdir -p "${D}/usr/share/cups/model" || die
|
||||
( cd "${D}/usr/share/cups/model" && ln -s ../../../../opt/brother/Printers/hll3280cdw/cupswrapper/brother_hll3280cdw_printer_en.ppd ) || die
|
||||
|
||||
( cd "${D}/opt/brother/Printers/hll3280cdw/lpd" && ln -s x86_64/brhll3280cdwfilter brhll3280cdwfilter) || die
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user