From 166246b5fb29afabeb6ffafc5569c88955aca444 Mon Sep 17 00:00:00 2001 From: Chess Griffin Date: Fri, 22 Mar 2013 16:28:13 -0400 Subject: [PATCH] fix mate-system-monitor SlackBuild - thanks to willysr --- .../mate-system-monitor.SlackBuild | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/testing/mate-system-monitor/mate-system-monitor.SlackBuild b/testing/mate-system-monitor/mate-system-monitor.SlackBuild index bb8f0d0..2edea68 100644 --- a/testing/mate-system-monitor/mate-system-monitor.SlackBuild +++ b/testing/mate-system-monitor/mate-system-monitor.SlackBuild @@ -92,27 +92,36 @@ make install DESTDIR=$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 -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 - -# Remove perllocal.pod and other special files that don't need to be installed, -# as they will overwrite what's already on the system. If this is not needed, -# remove it from the script. -# Remove 'special' files -find $PKG -name perllocal.pod \ - -o -name ".packlist" \ - -o -name "*.bs" \ - | xargs rm -f +# Compress and link manpages +if [ -d $PKG/usr/man ]; then + ( cd $PKG/usr/man + for manpagedir in $(find . -type d -name "man*") ; do + ( cd $manpagedir + for eachpage in $( find . -type l -maxdepth 1) ; do + ln -s $( readlink $eachpage ).gz $eachpage.gz + rm $eachpage + done + gzip -9 *.? + ) + done + ) +fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS COPYING ChangeLog NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \; +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +# Remove help files for now - until MATE upstream fixes help documentation +# buttons and menus. +find $PKG/usr/share/mate/help/$PRGNAM/* -maxdepth 0 -type d ! -name C -exec rm -rf {} \; || true + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}