diff --git a/testing/mate-utils/mate-utils.SlackBuild b/testing/mate-utils/mate-utils.SlackBuild index b4583b4..ad20bd3 100644 --- a/testing/mate-utils/mate-utils.SlackBuild +++ b/testing/mate-utils/mate-utils.SlackBuild @@ -92,27 +92,45 @@ 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 +# 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 -# 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 +for i in {mate-dictionary,mate-search-tool,mate-system-log,mate-disk-usage-analyzer}; +do + rm -rf $PKG/usr/share/omf/$i +done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS COPYING* ChangeLog NEWS README THANKS \ $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 +for j in {mate-dictionary,mate-search-tool,mate-system-log,mate-disk-usage-analyzer}; +do + find $PKG/usr/share/mate/help/$j/* -maxdepth 0 -type d ! -name C -exec rm -rf {} \; || true +done + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}