diff options
Diffstat (limited to 'office/zim/zim.SlackBuild')
-rw-r--r-- | office/zim/zim.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
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 |