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
4890cbf7
Commit
4890cbf7
authored
Aug 29, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add wpsoffice
parent
85245d2b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
wpsoffice.sh
play.d/wpsoffice.sh
+34
-0
wps-office.sh
repack.d/wps-office.sh
+20
-0
No files found.
play.d/wpsoffice.sh
0 → 100755
View file @
4890cbf7
#!/bin/sh
PKGNAME
=
wps-office
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"WPS Office for Linux from the official site"
.
$(
dirname
$0
)
/common.sh
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wps-office
# TODO: get actual version
pkgver
=
11.1.0.11664
pkgtype
=
$(
epm print info
-p
)
case
$pkgtype
in
rpm
)
PKG
=
"https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/
${
pkgver
##*.
}
/wps-office-
${
pkgver
}
.XA-1.x86_64.rpm"
;;
deb
)
PKG
=
"https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/
${
pkgver
##*.
}
/wps-office_
${
pkgver
}
.XA_amd64.deb"
;;
*
)
fatal
"Package target
$pkgtype
is not supported yet"
;;
esac
case
"
$(
epm print info
-s
)
"
in
alt
)
# See in the package scripts: find /home/*/.config/Kingsoft/Office.conf
epm
install
--repack
$PKG
;;
esac
epm
install
"
$PKG
"
repack.d/wps-office.sh
0 → 100755
View file @
4890cbf7
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
#REQUIRES="fonts-ttf-liberation, fonts-ttf-dejavu"
#subst "s|^\(Name: .*\)$|# Converted from original package requires\nRequires:$REQUIRES\n\1|g" $SPEC
subst
'1iAutoReq:no'
$SPEC
subst
'1iAutoProv:no'
$SPEC
remove_dir /etc/cron.d
remove_dir /etc/logrotate.d
#epm install --skip-installed bzlib fontconfig libalsa libcairo libcups libdrm libfreetype /usr/bin/perl zlib libXv glib2 libatk libcairo-gobject libEGL libgdk-pixbuf libgio libGL libgst-plugins1.0 libgstreamer1.0 libgtk+2 libgtk+3 libpango libpulseaudio libsqlite3 libX11 libxcb libxcb-render-util libXcomposite libXext libXfixes libxkbcommon libxkbcommon-x11 libXrender
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