Commit c644ec86 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play: add fplus-upd-ppd (eterbug #18278)

parent 189602db
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
# Lexmark-UPD-PPD-Files-1.0-05252022.x86_64.rpm
erc unpack $TAR || fatal
cd Драйвер*/print
BASENAME=$(basename Generic-UPD-PPD*.x86_64.rpm .rpm)
VERSION=$(echo $BASENAME | sed -e 's|Generic-UPD-PPD-Files-||' | sed -e 's|.x86_64||')
erc unpack $BASENAME.rpm || fatal
# Install PPDs
PPD_ROOT="usr/share/cups/model"
install -Dm644 -t "$PPD_ROOT/Fplus_PPD/Fplus-generic.ppd" usr/local/Generic/ppd/Generic-UPD-PPD-Files/GlobalPPD_1.4/*.ppd
# Install filter scripts
install -Dm755 -t "usr/lib/cups/filter/" "usr/local/Generic/ppd/Generic-UPD-PPD-Files/GlobalPPD_1.4/LexFaxPnHFilter"
install -Dm755 -t "usr/lib/cups/filter/" "usr/local/Generic/ppd/Generic-UPD-PPD-Files/GlobalPPD_1.4/queueCreation.sh"
# Install filter bins
install -Dm755 -t "usr/lib/cups/filter/" "usr/local/Generic/ppd/Generic-UPD-PPD-Files/GlobalPPD_1.4/lib64/LexCommandFileFilterG2"
install -Dm755 -t "usr/lib/cups/filter/" "usr/local/Generic/ppd/Generic-UPD-PPD-Files/GlobalPPD_1.4/lib64/cupsversion"
# Install license file
install -Dm644 -t "usr/share/doc/$PRODUCT/" usr/local/Generic/ppd/Generic-UPD-PPD-Files/License_EU*.txt
rm -fr usr/local
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar usr || fatal
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=fplus-upd-ppd
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="fplus drivers from the official site"
URL="https://fplustech.ru/"
. $(dirname $0)/common.sh
warn_version_is_not_supported
SOURL=$(eget --list --latest "https://fplustech.ru/product/mnogofunktsionalnoe-ustroystvo-fplus-mc241adfw/" "Драйвер для Linux.zip" | head -n 1)
PKGURL="${SOURL}%20для%20Linux.zip"
install_pack_pkgurl
echo "Note: run
# serv cups restart
to enable new printer model in cups
"
\ No newline at end of file
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