Skip to content

Commit

Permalink
Merge pull request #119 from MrDuartePT/master
Browse files Browse the repository at this point in the history
net-print/brother-mfc1810-bin: new package, add 3.0.1-r1
  • Loading branch information
stefan-langenmaier committed Mar 29, 2024
2 parents 067d282 + a56fcfb commit ee347f6
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net-print/brother-mfc1810-bin/Manifest
Original file line number Diff line number Diff line change
@@ -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
53 changes: 53 additions & 0 deletions net-print/brother-mfc1810-bin/brother-mfc1810-bin-3.0.1-r1.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
9 changes: 9 additions & 0 deletions net-print/brother-mfc1810-bin/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Gonçalo Negrier Duarte</name>
</maintainer>
<longdescription>Brother printer driver for mfc1810</longdescription>
</pkgmetadata>

0 comments on commit ee347f6

Please sign in to comment.