Commit 4890cbf7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add wpsoffice

parent 85245d2b
#!/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"
#!/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
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