1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
PKGNAME=epson-printer-utility
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Epson Printer Utility - Linux Epson Printer Utility from the official site"
URL="http://support.epson.net/linux/Printer/LSB_distribution_pages/en/utility.php"
# TODO: remove repo too
case "$1" in
"--remove")
epm remove $(epm qp $PKGNAME-)
exit
;;
esac
. $(dirname $0)/common.sh
pkgtype=$(epm print info -p)
arch="$(epm print info -a)"
case "$pkgtype-$arch" in
rpm-x86_64)
PKGURL="https://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=JA&CN2=US&CTI=177&PRN=Linux%20rpm%2064bit%20package&OSC=LX&DL"
;;
*-x86_64)
PKGURL="https://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=JA&CN2=US&CTI=177&PRN=Linux%20deb%2064bit%20package&OSC=LX&DL"
;;
*)
fatal "$arch arch is not supported"
;;
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
echo
echo "Note: run
# serv ecbd on
to enable needed epson-printer-utility system service
"