From 35194fb5fead9e655a1a203f3d1de60b7a8fd98d Mon Sep 17 00:00:00 2001 From: Toby Merz Date: Tue, 3 Nov 2020 08:49:45 +0100 Subject: [PATCH] New package: brother-hl3170cdw-cupswrapper-1.1.4 --- srcpkgs/brother-hl3170cdw-cupswrapper/INSTALL | 7 +++++ srcpkgs/brother-hl3170cdw-cupswrapper/REMOVE | 3 ++ .../brother-hl3170cdw-cupswrapper/template | 25 ++++++++++++++++ srcpkgs/brother-hl3170cdw-lpr/INSTALL | 6 ++++ srcpkgs/brother-hl3170cdw-lpr/template | 29 +++++++++++++++++++ 5 files changed, 70 insertions(+) create mode 100644 srcpkgs/brother-hl3170cdw-cupswrapper/INSTALL create mode 100644 srcpkgs/brother-hl3170cdw-cupswrapper/REMOVE create mode 100644 srcpkgs/brother-hl3170cdw-cupswrapper/template create mode 100644 srcpkgs/brother-hl3170cdw-lpr/INSTALL create mode 100644 srcpkgs/brother-hl3170cdw-lpr/template diff --git a/srcpkgs/brother-hl3170cdw-cupswrapper/INSTALL b/srcpkgs/brother-hl3170cdw-cupswrapper/INSTALL new file mode 100644 index 00000000000..2b508057611 --- /dev/null +++ b/srcpkgs/brother-hl3170cdw-cupswrapper/INSTALL @@ -0,0 +1,7 @@ +case "${ACTION}" in + post) + opt/brother/Printers/hl3170cdw/cupswrapper/cupswrapperhl3170cdw -i + chmod 755 opt/brother/Printers/hl3170cdw/cupswrapper* + ;; +esac + diff --git a/srcpkgs/brother-hl3170cdw-cupswrapper/REMOVE b/srcpkgs/brother-hl3170cdw-cupswrapper/REMOVE new file mode 100644 index 00000000000..c7e1d4d4430 --- /dev/null +++ b/srcpkgs/brother-hl3170cdw-cupswrapper/REMOVE @@ -0,0 +1,3 @@ +case ${ACTION} in + pre) opt/brother/Printers/hl3170cdw/cupswrapper/cupswrapper.void -e ;; +esac diff --git a/srcpkgs/brother-hl3170cdw-cupswrapper/template b/srcpkgs/brother-hl3170cdw-cupswrapper/template new file mode 100644 index 00000000000..aaec11e4252 --- /dev/null +++ b/srcpkgs/brother-hl3170cdw-cupswrapper/template @@ -0,0 +1,25 @@ +# Template file for 'brother-hl3170cdw-cupswrapper' +pkgname=brother-hl3170cdw-cupswrapper +version=1.1.4 +revision=1 +archs="i686 x86_64" +create_wrksrc=yes +depends="brother-hl3170cdw-lpr cups" +short_desc="CUPS wrapper driver for the brother HL-3170CDW printer" +maintainer="shizonic " +license="GPL-2.0-only" +homepage="http://support.brother.com/g/b/index.aspx" +distfiles="https://download.brother.com/welcome/dlf007058/hl3170cdwcupswrapper-${version}-0.i386.deb" +checksum=3ff4a1c0ab351c43d0a17d303fbcbdeb94a5d7a8d5b4fd1cf004cd8a775ec9b4 +nopie=yes + +do_extract() { + ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hl3170cdwcupswrapper-${version}-0.i386.deb +} + +do_install() { + mkdir -p ${DESTDIR} + bsdtar xzpvf data.tar.gz -C ${DESTDIR} + # rm ${DESTDIR}/opt/brother/Printers/hl3170cdw/cupswrapper/cupswrapperhl3170cdw + # vinstall ${FILESDIR}/cupswrapper.void 755 /opt/brother/Printers/hl3170cdw/cupswrapper/ +} diff --git a/srcpkgs/brother-hl3170cdw-lpr/INSTALL b/srcpkgs/brother-hl3170cdw-lpr/INSTALL new file mode 100644 index 00000000000..183f4cde8ff --- /dev/null +++ b/srcpkgs/brother-hl3170cdw-lpr/INSTALL @@ -0,0 +1,6 @@ +case "${ACTION}" in + post) + mkdir -p var/spool/lpd + opt/brother/Printers/hl3170cdw/inf/setupPrintcapij hl3170cdw -i + ;; +esac diff --git a/srcpkgs/brother-hl3170cdw-lpr/template b/srcpkgs/brother-hl3170cdw-lpr/template new file mode 100644 index 00000000000..fe53b12df9c --- /dev/null +++ b/srcpkgs/brother-hl3170cdw-lpr/template @@ -0,0 +1,29 @@ +# Template file for 'brother-hl3170cdw-lpr' +pkgname=brother-hl3170cdw-lpr +version=1.1.2 +revision=6 +archs="i686 x86_64" +create_wrksrc=yes +depends="a2ps ghostscript" +short_desc="LPR driver for the brother HL-3170CDW printer" +maintainer="shizonic " +license="GPL-2.0-only" +homepage="http://support.brother.com/g/b/index.aspx" +distfiles="https://support.brother.com/g/b/files/dlf/dlf007056/hl3170cdwlpr-${version}-1.i386.deb" +checksum=3751a3407b61e64e2a85b7d62c89f3b9bf4370db1e7b880a737116d9621fae4a +mutable_files="/opt/brother/Printers/hl3170cdw/inf/brhl3170cdwrc" +nopie=yes +system_accounts="lp" + +if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then + depends+=" glibc-32bit" +fi + +do_extract() { + ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hl3170cdwlpr-${version}-1.i386.deb +} + +do_install() { + mkdir -p ${DESTDIR} + bsdtar xzpvf data.tar.gz -C ${DESTDIR} +}