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
etersoft
eepm
Commits
93143d16
Commit
93143d16
authored
Mar 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play kyodialog: rewrite with epm pack
parent
05c333ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
12 deletions
+65
-12
kyodialog.sh
pack.d/kyodialog.sh
+43
-0
kyodialog.sh
play.d/kyodialog.sh
+1
-11
kyodialog.sh
repack.d/kyodialog.sh
+21
-1
No files found.
pack.d/kyodialog.sh
0 → 100755
View file @
93143d16
#!/bin/sh
TAR
=
"
$1
"
#VERSION="$2"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
epm assure erc
||
epm ei erc
||
fatal
CURDIR
=
"
$(
pwd
)
"
PKGDIR
=
"
$(
mktemp
-d
)
"
trap
"rm -fr
$PKGDIR
"
EXIT
cd
$PKGDIR
||
fatal
if
echo
"
$TAR
"
|
grep
Linux_Universal_Driver.zip
;
then
a
=
erc
$TAR
||
fatal
TAR
=
$(
echo
KyoceraLinuxPackages-
*
.tar.gz
)
fi
if
echo
"
$TAR
"
|
grep
KyoceraLinuxPackages
;
then
a
=
erc
$TAR
||
fatal
else
fatal
"How no idea how to handle
$TAR
"
fi
cd
KyoceraLinuxPackages-
*
.tar
||
fatal
case
"
$(
epm print info
-p
)
"
in
rpm
)
cd
Fedora/Global/kyodialog_x86_64
||
fatal
PKG
=
"kyodialog-*.x86_64.rpm"
;;
*
)
cd
Debian/Global/kyodialog_amd64
||
faal
PKG
=
"kyodialog_*_amd64.deb"
;;
# Debian/Global/kyodialog_i386 kyodialog_9.2-0_i386.deb
esac
cp
$PKG
$CURDIR
||
fatal
return_tar
$PKG
play.d/kyodialog.sh
View file @
93143d16
...
...
@@ -9,14 +9,4 @@ DESCRIPTION="KYOCERA Printing Package (Linux Universal Driver)"
URL
=
"https://www.kyoceradocumentsolutions.eu/content/download-center/eu/drivers/all/Linux_Universal_Driver_zip.download.zip"
epm assure erc
||
epm ei erc
||
fatal
PKGDIR
=
"
$(
mktemp
-d
)
"
trap
"rm -fr
$PKGDIR
"
EXIT
cd
$PKGDIR
||
fatal
epm tool eget
"
$URL
"
||
fatal
a
=
erc Linux_Universal_Driver.zip
||
fatal
a
=
erc KyoceraLinuxPackages-
*
.tar.gz
||
fatal
cd
KyoceraLinuxPackages-
*
.tar
||
fatal
cd
Fedora/Global/kyodialog_x86_64
||
fatal
epm
--repack
install
kyodialog-9.
*
.x86_64.rpm
epm pack
--install
kyodialog
"
$URL
"
repack.d/kyodialog.sh
View file @
93143d16
...
...
@@ -4,13 +4,17 @@
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
kyodialog
# FIXME
VER
=
9.2
PRODUCTCUR
=
$PRODUCT$VER
.
$(
dirname
$0
)
/common.sh
add_requires python3-module-PyPDF3
subst
'1iAutoProv: no'
$SPEC
VER
=
9.2
# remove embedded PyPDF3
remove_dir /usr/share/kyocera
$VER
/Python
...
...
@@ -27,3 +31,19 @@ pack_dir /usr/share/ppd/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
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCTCUR
.desktop
[Desktop Entry]
Type=Application
Name=Kyocera Print Panel
Exec=
$PRODUCTCUR
Icon=
$PRODUCTCUR
Comment=Kyocera Print Panel
Terminal=false
Categories=Qt;Printing;HardwareSettings;Settings
EOF
pack_file /usr/share/applications/
$PRODUCTCUR
.desktop
install_file /usr/share/kyocera9.2/appicon_H.png /usr/share/pixmaps/
$PRODUCTCUR
.png
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