From 89bba633616fe520f6667cdd4af2c70a9e07d64f Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Sun, 15 Sep 2019 17:10:56 +1200 Subject: desktop/zim: Fix DESTDIR handling. Signed-off-by: Andrew Clemons --- office/zim/doinst.sh | 6 ++++++ office/zim/zim.SlackBuild | 14 +++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'office') diff --git a/office/zim/doinst.sh b/office/zim/doinst.sh index 9a8ded3c60..aea0f894eb 100644 --- a/office/zim/doinst.sh +++ b/office/zim/doinst.sh @@ -5,3 +5,9 @@ fi if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/office/zim/zim.SlackBuild b/office/zim/zim.SlackBuild index 8437710c83..5c6b19d343 100644 --- a/office/zim/zim.SlackBuild +++ b/office/zim/zim.SlackBuild @@ -64,7 +64,7 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION chown -R root:root . @@ -72,12 +72,20 @@ find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +./setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -DESTDIR="$PKG" ./setup.py install +mv $PKG/usr/share/man $PKG/usr/ + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/share/icons +cp -r xdg/hicolor/ $PKG/usr/share/icons/ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3