Commit 3408fcd0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack onlyoffice-desktopeditors: pack icons (ALT bug 43713)

parent 7cb06381
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
BUILDROOT="$1" BUILDROOT="$1"
SPEC="$2" SPEC="$2"
PRODUCTDIR=/opt/onlyoffice
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
# TODO: required libreoffice-opensymbol-fonts # TODO: required libreoffice-opensymbol-fonts
...@@ -28,6 +30,15 @@ for i in $BUILDROOT/opt/onlyoffice/desktopeditors/converter/*.so ; do ...@@ -28,6 +30,15 @@ for i in $BUILDROOT/opt/onlyoffice/desktopeditors/converter/*.so ; do
a= patchelf --set-rpath '$ORIGIN/:$ORIGIN/../' $i || continue a= patchelf --set-rpath '$ORIGIN/:$ORIGIN/../' $i || continue
done done
# pack icons
iconname=onlyoffice-desktopeditors
for i in 16 22 24 32 48 64 128 256 ; do
mkdir -p $BUILDROOT/usr/share/icons/hicolor/${i}x${i}/apps/
cp $BUILDROOT/$PRODUCTDIR/desktopeditors/asc-de-$i.png $BUILDROOT/usr/share/icons/hicolor/${i}x${i}/apps/$iconname.png
done
subst "s|%files|%files\n/usr/share/icons/hicolor/*x*/apps/$iconname.png|" $SPEC
subst '1iAutoReq:no' $SPEC subst '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $SPEC subst '1iAutoProv:no' $SPEC
......
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