From 6f80265095e3672b0ff60a98e396ca555edce1c9 Mon Sep 17 00:00:00 2001 From: onekk Date: Sat, 19 Apr 2014 11:10:44 +0200 Subject: [PATCH] brother-dcp197c-cupswrapper: New package, building fine and INSTALL seems to work --- srcpkgs/brother-dcp197c-cupswrapper/INSTALL | 7 +++++++ srcpkgs/brother-dcp197c-cupswrapper/template | 22 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/brother-dcp197c-cupswrapper/INSTALL create mode 100644 srcpkgs/brother-dcp197c-cupswrapper/template diff --git a/srcpkgs/brother-dcp197c-cupswrapper/INSTALL b/srcpkgs/brother-dcp197c-cupswrapper/INSTALL new file mode 100644 index 00000000000..95477d47345 --- /dev/null +++ b/srcpkgs/brother-dcp197c-cupswrapper/INSTALL @@ -0,0 +1,7 @@ +case "${ACTION}" in +post) + /opt/brother/Printers/dcp197c/cupswrapper/cupswrapperdcp197c + chmod 755 /opt/brother/Printers/dcp197c/cupswrapper + ;; +esac + diff --git a/srcpkgs/brother-dcp197c-cupswrapper/template b/srcpkgs/brother-dcp197c-cupswrapper/template new file mode 100644 index 00000000000..bdc1dbca773 --- /dev/null +++ b/srcpkgs/brother-dcp197c-cupswrapper/template @@ -0,0 +1,22 @@ +# Template file for 'brother-dcp197c-cupswrapper' +pkgname=brother-dcp197c-cupswrapper +version=1.1.3 +revision=1 +maintainer="Carlo Dormeletti " +homepage="http://support.brother.com/g/b/index.aspx" +license="GPL-2" +short_desc="CUPS wrapper driver for the brother DCP-197C printer/scanner" +distfiles="http://download.brother.com/welcome/dlf005405/dcp197ccupswrapper-${version}-1.i386.deb" +checksum="d3ebfad8231939900b8041022d6c35a0ee7a1a417f7ffdab2ae371b54a00bab8" +only_for_archs="i686 x86_64" +depends="brother-dcp197c-lpr cups" +create_wksrc=yes + +do_extract() { + ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/dcp197ccupswrapper-${version}-1.i386.deb +} + +do_install(){ + mkdir -p ${DESTDIR} + tar xzpvf data.tar.gz -C ${DESTDIR} +}