diff options
author | Jean-Marc Lenoir | 2018-05-11 15:04:59 +0200 |
---|---|---|
committer | Jean-Marc Lenoir | 2018-05-11 15:04:59 +0200 |
commit | 20c026e478273889e818c7b904489c6f935133d4 (patch) | |
tree | d9de396b28c07813703a3867e809545058842237 | |
download | aur-20c026e478273889e818c7b904489c6f935133d4.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 49 | ||||
-rw-r--r-- | iscan-plugin-gt-f700.install | 13 |
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..314b0b5d2661 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = iscan-plugin-gt-f700 + pkgdesc = EPSON Image Scan! plugin for Epson scanners (Perfection V350 Photo) + pkgver = 1.0.0 + pkgrel = 1 + url = https://epson.com/Support/Scanners/Perfection-Series/Epson-Perfection-V350-Photo/s/SPT_B11B185011 + install = iscan-plugin-gt-f700.install + arch = i686 + arch = x86_64 + license = custom:AVASYSPL + depends = iscan + source_i686 = https://download2.ebz.epson.net/iscan/plugin/gt-f700/deb/x86/iscan-gt-f700-bundle-1.0.0.x86.deb.tar.gz + sha256sums_i686 = 6d8caea316a8731898871cfb0c5a063479d94435c0bb1f34ffe3e2dde374f729 + source_x86_64 = https://download2.ebz.epson.net/iscan/plugin/gt-f700/deb/x64/iscan-gt-f700-bundle-1.0.0.x64.deb.tar.gz + sha256sums_x86_64 = effffe4a78d5abe7d4148186f15ad50fe96459e9083968a8c7d3ee1b4688b6f2 + +pkgname = iscan-plugin-gt-f700 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c780d7b0afbc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Jean-Marc Lenoir <archlinux "at" jihemel "dot" com> + +pkgname=iscan-plugin-gt-f700 +pkgver=1.0.0 +pkgrel=1 +pkgdesc="EPSON Image Scan! plugin for Epson scanners (Perfection V350 Photo)" +arch=('i686' 'x86_64') +url="https://epson.com/Support/Scanners/Perfection-Series/Epson-Perfection-V350-Photo/s/SPT_B11B185011" +license=('custom:AVASYSPL') +depends=('iscan') +_plugin=${pkgname/iscan-plugin-/} +_iscan_ver=1.0.0 +_plugin_rel=1 +_file_ver=2.1.2 +source_i686=("https://download2.ebz.epson.net/iscan/plugin/${_plugin}/deb/x86/iscan-${_plugin}-bundle-${_iscan_ver}.x86.deb.tar.gz") +source_x86_64=("https://download2.ebz.epson.net/iscan/plugin/${_plugin}/deb/x64/iscan-${_plugin}-bundle-${_iscan_ver}.x64.deb.tar.gz") +sha256sums_i686=('6d8caea316a8731898871cfb0c5a063479d94435c0bb1f34ffe3e2dde374f729') +sha256sums_x86_64=('effffe4a78d5abe7d4148186f15ad50fe96459e9083968a8c7d3ee1b4688b6f2') +install="${pkgname}.install" + +if [ "$CARCH" = 'x86_64' ] +then + _filearch=x64 + _debarch=amd64 +else + _filearch=x86 + _debarch=i386 +fi + +build() { + cd "iscan-${_plugin}-bundle-${_iscan_ver}.${_filearch}.deb/plugins" + bsdtar -xf "iscan-plugin-${_plugin}_${_file_ver}-${_plugin_rel}_${_debarch}.deb" + bsdtar -xf data.tar.gz +} + +package() { + cd "iscan-${_plugin}-bundle-${_iscan_ver}.${_filearch}.deb/plugins/usr" + # Install plugins + install -m 755 -d "${pkgdir}/usr/lib/iscan" + install -m 644 -t "${pkgdir}/usr/lib/iscan" "lib/iscan/libesint68.so.2.0.1" + ln -s "libesint68.so.2.0.1" "${pkgdir}/usr/lib/iscan/libesint68.so" + ln -s "libesint68.so.2.0.1" "${pkgdir}/usr/lib/iscan/libesint68.so.2" + # Install firmwares + install -m 755 -d "${pkgdir}/usr/share/iscan" + install -m 644 -t "${pkgdir}/usr/share/iscan" "share/iscan/esfw68.bin" + # Install licenses + install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m 644 "share/doc/${pkgname}/AVASYSPL.en.txt" "${pkgdir}/usr/share/licenses/${pkgname}/AVASYSPL" +} diff --git a/iscan-plugin-gt-f700.install b/iscan-plugin-gt-f700.install new file mode 100644 index 000000000000..f042e0958d12 --- /dev/null +++ b/iscan-plugin-gt-f700.install @@ -0,0 +1,13 @@ +post_install() { + echo "Registering iscan plugins and firmwares" + iscan-registry --add interpreter usb 0x04b8 0x012f \ + /usr/lib/iscan/libesint68 \ + /usr/share/iscan/esfw68.bin +} + +pre_remove() { + echo "Unregistering iscan plugins and firmwares" + iscan-registry --remove interpreter usb 0x04b8 0x012f \ + /usr/lib/iscan/libesint68 \ + /usr/share/iscan/esfw68.bin +} |