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

epm play: add lexmark-upd-ppd (eterbug #17268)

parent fb09d42a
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
# Lexmark-UPD-PPD-Files-1.0-05252022.x86_64.rpm
BASENAME=$(basename $TAR .rpm)
VERSION=$(echo $BASENAME | sed -e 's|Lexmark-UPD-PPD-Files-||' | sed -e 's|.x86_64||')
erc unpack $TAR || fatal
# Install PPDs
# PPD_ROOT="usr/share/ppd"
PPD_ROOT="usr/share/cups/model"
mkdir opt
install -Dm644 -t "$PPD_ROOT/Lexmark_PPD/" usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/GlobalPPD_1.4/*.ppd
# Install filter scripts
install -Dm755 -t "usr/lib/cups/filter/" "usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/GlobalPPD_1.4/LexFaxPnHFilter"
install -Dm755 -t "usr/lib/cups/filter/" "usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/GlobalPPD_1.4/queueCreation.sh"
# Install filter bins
install -Dm755 -t "usr/lib/cups/filter/" "usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/GlobalPPD_1.4/lib64/LexCommandFileFilterG2"
install -Dm755 -t "usr/lib/cups/filter/" "usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/GlobalPPD_1.4/lib64/cupsversion"
# Install license file
install -Dm644 -t "usr/share/doc/$PRODUCT/" "usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/License_EU2-0111-en.txt"
install -Dm644 -t "usr/share/doc/$PRODUCT/" "usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/License_EU2-0111-ru.txt"
rm -fr usr/local
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar usr opt || fatal
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=lexmark-upd-ppd
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Linux Universal Print Driver with 64-bit packaging for Lexmark Printers"
URL="https://support.lexmark.com/content/support/en_xm/support/download.DRI1000577.html"
. $(dirname $0)/common.sh
warn_version_is_not_supported
PKGURL="https://downloads.lexmark.com/downloads/drivers/Lexmark-UPD-PPD-Files-1.0-05252022.x86_64.rpm"
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