File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed
srcpkgs/iscan-plugin-gt-x820 Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ if [ "$UPDATE" = "no" ] && [ "$ACTION" = "post" ]; then
2+ usr/bin/iscan-registry --add interpreter usb 0x04b8 0x013a \
3+ /usr/lib/iscan/libesintA1 /usr/share/iscan/esfwA1.bin
4+ fi
5+
Original file line number Diff line number Diff line change 1+ if [ "$UPDATE" = "no" ] && [ "$ACTION" = "pre" ]; then
2+ # If we're removing sane-epkowa together with this package,
3+ # there's no point (and no success) in calling iscan-registry
4+ [ -x usr/bin/iscan-registry ] || exit 0
5+ usr/bin/iscan-registry --remove interpreter usb 0x04b8 0x013a \
6+ /usr/lib/iscan/libesintA1 /usr/share/iscan/esfwA1.bin
7+ fi
Original file line number Diff line number Diff line change 1+ # Template file for 'iscan-plugin-gt-x820'
2+ pkgname=iscan-plugin-gt-x820
3+ version=2.2.1
4+ revision=1
5+ _bundlever=2.30.4
6+ archs="i686 x86_64"
7+ depends="sane-epkowa"
8+ short_desc="SANE/iscan plugin for Epson GT-X820/Perfection V600 Photo"
9+ maintainer="yosh <yosh-git@riseup.net>"
10+ license="custom:EPSON"
11+ homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
12+ case "$XBPS_TARGET_MACHINE" in
13+ x86_64)
14+ _arch=x64
15+ _plugin=x86_64
16+ checksum=63647dac68e26bfee5bd75108cc6a4df0fddb8453a1e3bac2d63dea7db518bee
17+ ;;
18+ i686)
19+ _arch=x86
20+ _plugin=i686
21+ checksum=20f96a10e99be16a261bb1d716998dc4b041e4abb722228e2a9326db1a83901c
22+ ;;
23+ esac
24+ distfiles="https://download2.ebz.epson.net/iscan/plugin/gt-x820/rpm/${_arch}/iscan-gt-x820-bundle-${_bundlever}.${_arch}.rpm.tar.gz"
25+ repository=nonfree
26+ restricted=yes
27+
28+ post_extract() {
29+ cd plugins
30+ bsdtar -xf iscan-plugin-gt-x820-${version}-1.${_plugin}.rpm
31+ }
32+
33+ do_install() {
34+ cd plugins
35+ vlicense usr/share/doc/iscan-plugin-gt-x820-${version}/COPYING.EPSON.en.txt
36+ vlicense usr/share/doc/iscan-plugin-gt-x820-${version}/COPYING.EPSON.ja.txt
37+ vcopy usr/share/iscan usr/share
38+ vcopy usr/lib*/* usr/lib
39+ }
You can’t perform that action at this time.
0 commit comments