Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
25832471
Commit
25832471
authored
Dec 28, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add Kyocera printer driver
parent
d4933832
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
kyodialog.sh
play.d/kyodialog.sh
+23
-0
kyodialog.sh
repack.d/kyodialog.sh
+31
-0
No files found.
play.d/kyodialog.sh
0 → 100755
View file @
25832471
#!/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
repack.d/kyodialog.sh
0 → 100755
View file @
25832471
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment