mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-25 21:59:36 +01:00
update mate-utils.SlackBuild; add two for loops to clean out /usr/share/omf and also /usr/share/mate/help
This commit is contained in:
parent
431e8a6858
commit
2e6944514b
1 changed files with 28 additions and 10 deletions
|
@ -92,27 +92,45 @@ make install DESTDIR=$PKG
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
# Compress and link manpages
|
||||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
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,
|
for i in {mate-dictionary,mate-search-tool,mate-system-log,mate-disk-usage-analyzer};
|
||||||
# as they will overwrite what's already on the system. If this is not needed,
|
do
|
||||||
# remove it from the script.
|
rm -rf $PKG/usr/share/omf/$i
|
||||||
# Remove 'special' files
|
done
|
||||||
find $PKG -name perllocal.pod \
|
|
||||||
-o -name ".packlist" \
|
|
||||||
-o -name "*.bs" \
|
|
||||||
| xargs rm -f
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a \
|
||||||
AUTHORS COPYING* ChangeLog NEWS README THANKS \
|
AUTHORS COPYING* ChangeLog NEWS README THANKS \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
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
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
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
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
||||||
|
|
Loading…
Reference in a new issue