Commit 25832471 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add Kyocera printer driver

parent d4933832
#!/bin/sh
PKGNAME=kyodialog
SUPPORTEDARCHES="x86_64"
DESCRIPTION="KYOCERA Printing Package (Linux Universal Driver)"
. $(dirname $0)/common.sh
URL="https://www.kyoceradocumentsolutions.eu/content/download-center/eu/drivers/all/Linux_Universal_Driver_zip.download.zip"
# FIXME: ALT Linux only
epm assure erc || fatal
PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
epm tool eget "$URL" || fatal
erc Linux_Universal_Driver.zip || fatal
erc KyoceraLinuxPackages-*.tar.gz || fatal
cd KyoceraLinuxPackages-*.tar || fatal
cd Fedora/Global/kyodialog_x86_64 || fatal
epm --repack install kyodialog-9.*.x86_64.rpm
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
subst '1iRequires: python3-module-PyPDF3' $SPEC
subst '1iAutoProv: no' $SPEC
VER=9.2
# remove embedded PyPDF3
remove_dir /usr/share/kyocera$VER/Python
remove_dir /usr/lib/.build-id
# PRIMARY_PPD_DIRECTORY=/usr/share/ppd/kyocera/
fromppd="/usr/share/kyocera$VER/ppd$VER"
mkdir -p $BUILDROOT/usr/share/ppd/
mv $BUILDROOT$fromppd $BUILDROOT/usr/share/ppd/kyocera
subst "s|$fromppd|/usr/share/ppd/kyocera|" $SPEC
pack_dir /usr/share/ppd/kyocera
#remove_dir $fromppd
#pack_file /usr/share/ppd/kyocera
# ALTERNATE_PPD_DIRECTORY=/usr/share/cups/model/kyocera
mkdir -p $BUILDROOT/usr/share/cups/model/
ln -s /usr/share/ppd/kyocera $BUILDROOT/usr/share/cups/model/kyocera
pack_file /usr/share/cups/model/kyocera
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