Commit ad9e3fa6 authored by Иван Мажукин's avatar Иван Мажукин Committed by Vitaly Lipatov

epm play: add epson-printer-utility

parent 3bc11020
#!/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
"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
UNIREQUIRES="udev libusb-1.0.so.0"
. $(dirname $0)/common.sh
add_qt5_deps
# utility
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT
install_file opt/epson-printer-utility/rules/79-udev-epson.rules /etc/udev/rules.d/79-udev-epson.rules
install_file opt/epson-printer-utility/epson-printer-utility.desktop /usr/share/applications/epson-printer-utility.desktop
# backend
install_file usr/lib/epson-backend/ecbd.service /usr/lib/systemd/system/ecbd.service
mkdir -p /var/cache/epson-backend
pack_dir /var/cache/epson-backend
# if command -v semodule > /dev/null 2>&1;then
# semodule -i $BUILDROOT/usr/lib/epson-backend/epson_pol.pp
# fi
remove_dir /usr/lib/epson-backend/rc.d
remove_dir /usr/lib/epson-backend/scripts
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