From a56fcfb447f0e8aa22b9437e4ac6a37a77008d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Duarte?= Date: Sun, 23 Jul 2023 16:36:00 +0100 Subject: [PATCH] net-print/brother-mfc1810-bin: new package, add 3.0.1-r1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Duarte --- net-print/brother-mfc1810-bin/Manifest | 2 + .../brother-mfc1810-bin-3.0.1-r1.ebuild | 53 +++++++++++++++++++ net-print/brother-mfc1810-bin/metadata.xml | 9 ++++ 3 files changed, 64 insertions(+) create mode 100644 net-print/brother-mfc1810-bin/Manifest create mode 100644 net-print/brother-mfc1810-bin/brother-mfc1810-bin-3.0.1-r1.ebuild create mode 100644 net-print/brother-mfc1810-bin/metadata.xml diff --git a/net-print/brother-mfc1810-bin/Manifest b/net-print/brother-mfc1810-bin/Manifest new file mode 100644 index 0000000..3828eae --- /dev/null +++ b/net-print/brother-mfc1810-bin/Manifest @@ -0,0 +1,2 @@ +DIST mfc1810cupswrapper-3.0.1-1.i386.rpm 19008 BLAKE2B 87e08a2029022f3f037e874f1765d94df17a4ac7ee7f7456315ed4d01037062de63e64efea5a8c964661d66e4f44e5e21827f231d7b0da2eb22fb6426382f2ec SHA512 4f146ff6aae02cb2d0d3eaae1793016fa486a0cbe389fbd042242dde65eb365b729dc1999fe6bd4ad460c83ed1e4c7e2f47d7f900204a9b277ee9bed1e9837b9 +DIST mfc1810lpr-3.0.1-1.i386.rpm 37993 BLAKE2B 9b8d2648971eaff623dd46cfb3c81ed6b8ec91274128c8ee22d68616513514fe3e8ac9ec049eb6b98d83d6e1ff02768c8fcf11062aec483cc14fbb3063f21c97 SHA512 d82ddd6dc627d1d086039144839b8acf21f9b4dd1d83b939c849082bcb860d2d0bc6433edc5bcb03ede648938ec875214d9082c4ea0b9296d2379a4008cb5ca9 diff --git a/net-print/brother-mfc1810-bin/brother-mfc1810-bin-3.0.1-r1.ebuild b/net-print/brother-mfc1810-bin/brother-mfc1810-bin-3.0.1-r1.ebuild new file mode 100644 index 0000000..d369936 --- /dev/null +++ b/net-print/brother-mfc1810-bin/brother-mfc1810-bin-3.0.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit rpm linux-info +MY_PN="mfc1810" +MY_PV="${PV}-1" + +DESCRIPTION="Brother printer driver for MFC-1810" +HOMEPAGE="http://support.brother.com" +SRC_URI="https://download.brother.com/welcome/dlf100413/${MY_PN}lpr-${MY_PV}.i386.rpm + https://download.brother.com/welcome/dlf100415/${MY_PN}cupswrapper-${MY_PV}.i386.rpm +" + +LICENSE="brother-eula GPL-2" + +SLOT="0" + +KEYWORDS="amd64 x86" + +RESTRICT="mirror strip" + +DEPEND="net-print/cups" +RDEPEND="${DEPEND}" + +S=${WORKDIR} + +pkg_setup() { + CONFIG_CHECK="" + if use amd64; then + CONFIG_CHECK="${CONFIG_CHECK} ~IA32_EMULATION" + fi + + linux-info_pkg_setup +} + +src_unpack() { + rpm_unpack ${A} +} + +src_install() { + MODEL=MFC1810 + + mkdir -p "${D}/usr/libexec/cups/filter" || die + mkdir -p "${D}/usr/share/cups/model/Brother" || die + + cp -r opt "${D}" || die + + ( ln -s "${D}/opt/brother/Printers/${MODEL}/cupswrapper/brother_lpdwrapper_${MODEL}" "${D}/usr/libexec/cups/filter/brother_lpdwrapper_${MODEL}" ) || die + + ( ln -s "${D}/opt/brother/Printers/${MODEL}/cupswrapper/brother-${MODEL}-cups-en.ppd" "${D}/usr/share/cups/model/Brother/brother_${MODEL}_printer_en.ppd" ) || die +} \ No newline at end of file diff --git a/net-print/brother-mfc1810-bin/metadata.xml b/net-print/brother-mfc1810-bin/metadata.xml new file mode 100644 index 0000000..23650e6 --- /dev/null +++ b/net-print/brother-mfc1810-bin/metadata.xml @@ -0,0 +1,9 @@ + + + + + gonegrier.duarte@gmail.com + Gonçalo Negrier Duarte + + Brother printer driver for mfc1810 +