desktop/xonclock: Cleanup SlackBuild.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David Woodfall 2022-02-19 06:23:31 +00:00 committed by Willy Sudiarto Raharjo
parent 3a8fc0b8c5
commit d4db3a8fef
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 3 additions and 9 deletions

View File

@ -92,18 +92,12 @@ LDFLAGS="-lm -lXrender" \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
make install-strip DESTDIR=$PKG
find $PKG | xargs 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
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README TODO AUTHORS INSTALL ChangeLog COPYING NEWS THANKS \
cp -a README AUTHORS COPYING NEWS THANKS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild