Commit 696e70bb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add epsonscan2

parent 143512ec
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
if ! echo "$TAR" | grep -q "epsonscan2-bundle-.*.tar.gz" ; then
fatal "No idea how to handle $TAR"
fi
erc unpack $TAR && cd epsonscan2-bundle-* || fatal
pkgtype="$(epm print info -p)"
core="core/epsonscan2*.*"
plugins="plugins/epsonscan2-non-free-plugin*.*"
return_tar $core $plugins
#!/bin/sh
PKGNAME=epsonscan2
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Epson Scan 2 - Linux Scanner Driver from the official site"
URL="https://support.epson.net/linux/en/epsonscan2.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=171&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=171&PRN=Linux%20deb%2064bit%20package&OSC=LX&DL"
;;
*)
fatal "$arch arch is not supported"
;;
esac
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm pack $repack --install $PKGNAME "$PKGURL"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment