Commit 2f1a4473 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add cnrdrvcups-ufr2 support

parent 6e562aac
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
CURDIR="$(pwd)"
PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
if ! echo "$TAR" | grep "linux-UFRII-drv" ; then
fatal "How no idea how to handle $TAR"
fi
erc unpack $TAR && cd linux-* || fatal
case "$(epm print info -a)" in
x86_64)
cd x64 || fatal
;;
x86)
cd x86 || fatal
;;
aarch64)
cd ARM64 || fatal
;;
*)
fatal "Unsupported arch"
;;
esac
case "$(epm print info -p)" in
rpm)
PKG="RPM/*.rpm"
;;
*)
cd Debian || fatal
PKG="Debian/*.deb"
;;
esac
PKG="$(echo $PKG)"
cp $PKG $CURDIR || fatal
return_tar $(basename $PKG)
#!/bin/sh
PKGNAME=cnrdrvcups-ufr2-uk
SUPPORTEDARCHES="x86_64 aarch64"
DESCRIPTION="Canon UFR II Printer Driver for Linux from the official site"
URL="https://www.canon.ru/support/business-product-support/office_driver_guide/"
. $(dirname $0)/common.sh
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=cnrdrvcups-lb
PKGURL="https://gdlp01.c-wss.com/gds/8/0100007658/33/linux-UFRII-drv-v570-m17n-11.tar.gz"
epm pack --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