Commit eddf019d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add pfusp (Ricoh SP-1120N / SP-1125N / SP-1130N Image Scanner Driver)

parent e81056ba
#!/bin/sh
PKGNAME=pfusp
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Ricoh SP-1120N / SP-1125N / SP-1130N Image Scanner Driver Linux from the official site"
URL="https://www.pfu.ricoh.com/global/scanners/fi/dl/agree/ubuntu-64-221-sp.html"
. $(dirname $0)/common.sh
VERSION=2.2.1
# check URL to upgrade the version
PKGURL="https://origin.pfultd.com/downloads/IMAGE/driver/ubuntu/221/pfusp-ubuntu_2.2.1_amd64.deb"
epm install "$PKGURL"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
for i in opt/pfusp/consumables/pfuspconsumables \
opt/pfusp/pfuspgetinfo/pfuspgetscerror \
opt/pfusp/pfuspgetinfo/pfuspgetscstatus ; do
chmod 0755 $i
add_bin_link_command $(basename $i) /$i
done
create_file()
{
local t="$1"
local l="$(basename $t)"
cat >$l
install_file $l $t
}
PFUSCANNER="pfusp"
cat <<EOF | create_file /opt/pfusp/etc/$PFUSCANNER.conf
#SP-1120
usb 0x04c5 0x1473
#SP-1125
usb 0x04c5 0x1475
#SP-1130
usb 0x04c5 0x1476
#SP-1425
usb 0x04c5 0x1524
#SP-1120N
usb 0x04c5 0x1625
#SP-1125N
usb 0x04c5 0x1626
#SP-1130N
usb 0x04c5 0x1627
EOF
cat <<EOF | create_file /opt/pfusp/etc/consumablessettings.xml
<Root>
<Version>2.2.1</Version>
<Copyright>2017-2023</Copyright>
</Root>
EOF
cat <<EOF | create_file /etc/sane.d/dll.d/$PFUSCANNER
# dll.conf snippet for $PFUSCANNER
#
$PFUSCANNER
EOF
cat <<EOF | create_file /opt/pfusp/etc/simple-scan.conf
PAPER_SIZE=0
EOF
add_libs_requires
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