Commit c9b26244 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play wpsoffice-cn: use wps-office-cn package name

parent 5800d467
......@@ -112,6 +112,7 @@ warn_version_is_not_supported()
VERSION="*"
}
# set awaited pkgname to check with
override_pkgname()
{
PKGNAME="$1"
......
#!/bin/sh
PKGNAME=wps-office
PKGNAME=wps-office-cn
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="WPS Office for Linux from the official site (Chinese version)"
......@@ -19,4 +19,5 @@ timestamp10=$(date '+%s')
md5hash=$(printf '%s%s%s' "$secrityKey" "$uri" "$timestamp10" | md5sum | cut -d' ' -f1)
PKGURL="$CHN_DEB_URL?t=${timestamp10}&k=${md5hash}"
export EPM_REPACK_SCRIPT="$PKGNAME"
install_pkgurl
......@@ -4,11 +4,15 @@
BUILDROOT="$1"
SPEC="$2"
PRODUCTDIR=/opt/kingsoft/wps-office
PKGNAME=$(basename $0 .sh)
. $(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
if [ "$PKGNAME" = "wps-office-cn" ] ; then
subst "s|^\(Name: .*\)$|Name: $PKGNAME|" $SPEC
add_conflicts wps-office
fi
remove_dir /etc/cron.d
remove_dir /etc/logrotate.d
......
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