From 6e4879fd4b7476da43b064d0caac0d6b7bd1a59c Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Mon, 7 Oct 2019 12:30:19 -0500 Subject: [PATCH] New package: iscan-plugin-gt-f720-2.30.4 --- srcpkgs/iscan-plugin-gt-f720/INSTALL | 4 +++ srcpkgs/iscan-plugin-gt-f720/REMOVE | 4 +++ srcpkgs/iscan-plugin-gt-f720/template | 36 +++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 srcpkgs/iscan-plugin-gt-f720/INSTALL create mode 100644 srcpkgs/iscan-plugin-gt-f720/REMOVE create mode 100644 srcpkgs/iscan-plugin-gt-f720/template diff --git a/srcpkgs/iscan-plugin-gt-f720/INSTALL b/srcpkgs/iscan-plugin-gt-f720/INSTALL new file mode 100644 index 00000000000..d0c81b40e69 --- /dev/null +++ b/srcpkgs/iscan-plugin-gt-f720/INSTALL @@ -0,0 +1,4 @@ +if [ "$UPDATE" = "no" -a "$ACTION" = "post" ]; then + iscan-registry --add interpreter usb 0x04b8 0x0131 \ + /usr/lib/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin +fi diff --git a/srcpkgs/iscan-plugin-gt-f720/REMOVE b/srcpkgs/iscan-plugin-gt-f720/REMOVE new file mode 100644 index 00000000000..8fb507e1433 --- /dev/null +++ b/srcpkgs/iscan-plugin-gt-f720/REMOVE @@ -0,0 +1,4 @@ +if [ "$UPDATE" = "no" -a "$ACTION" = "pre" ]; then + iscan-registry --remove interpreter usb 0x04b8 0x0131 \ + /usr/lib/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin +fi diff --git a/srcpkgs/iscan-plugin-gt-f720/template b/srcpkgs/iscan-plugin-gt-f720/template new file mode 100644 index 00000000000..da2c78024c0 --- /dev/null +++ b/srcpkgs/iscan-plugin-gt-f720/template @@ -0,0 +1,36 @@ +# Template file for 'iscan-plugin-gt-f720' +pkgname=iscan-plugin-gt-f720 +version=2.30.4 +revision=1 +archs="x86_64 i686" +hostmakedepends="dpkg tar" +depends="sane-epkowa" +short_desc="Epson scanner plugin for GT-F720, GT-S620, and Perfection V30/V300" +maintainer="Andrew Benson " +license="custom:EPSON" +homepage="http://support.epson.net/linux/en/iscan.php?model=gt-f720&version=2.30.4" +repository=nonfree +restricted=yes +_bundlever=1.0.0 + +case $XBPS_ARCH in + x86_64) + _arch=x64 + _darch=amd64 + distfiles="${homepage}/iscan/plugin/gt-f720/deb/x64/iscan-gt-f720-bundle-${version}.${_arch}.deb.tar.gz" + checksum=9e4b56994d83241472e15f1c9c1f37646a12809921aea912724a07b152d5437b + ;; + i686) + _arch=x86 + _darch=i386 + distfiles="${homepage}/iscan/plugin/gt-f720/deb/x86/iscan-gt-f720-bundle-${version}.${_arch}.deb.tar.gz" + checksum=6a84f6461e9cff0c64e2282c75b26ec004303b873b769ece799bcbfa79400a85 + ;; +esac + +wrksrc="iscan-gt-f720-bundle-${version}.${_arch}.deb" + +do_install() { + dpkg-deb -x "plugins/esci-interpreter-gt-f720_${_bundlever}-1_${_darch}.deb" $DESTDIR + vlicense $DESTDIR/usr/share/doc/esci-interpreter-gt-f720/COPYING.EPSON.en.txt.gz +}