diff options
Diffstat (limited to 'source/x/freeglut/freeglut.SlackBuild')
-rwxr-xr-x | source/x/freeglut/freeglut.SlackBuild | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/source/x/freeglut/freeglut.SlackBuild b/source/x/freeglut/freeglut.SlackBuild index 5b8d89213..4de47d9fb 100755 --- a/source/x/freeglut/freeglut.SlackBuild +++ b/source/x/freeglut/freeglut.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 2012 Robby Workman, Northport, Alabama, USA -# Copyright 2016, 2018, 2019, 2021 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2016, 2018, 2019, 2021, 2022 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -79,15 +79,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/html -cp -a \ - AUTHORS COPYING* INSTALL NEWS README TODO \ - $PKG/usr/doc/$PKGNAM-$VERSION -cp -a doc/*.{html,png} $PKG/usr/doc/$PKGNAM-$VERSION/html -find $PKG/usr/doc -type f -exec chmod 0644 {} \+ -# In case this is empty: -rmdir $PKG/usr/doc/$PKGNAM-$VERSION/html 2> /dev/null - mkdir -p build cd build CFLAGS="$SLKCFLAGS" \ @@ -121,6 +112,24 @@ make install DESTDIR=$PKG || exit 1 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 +cd .. +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/html +cp -a \ + AUTHORS* COPYING* ChangeLog INSTALL* NEWS* README* TODO* \ + $PKG/usr/doc/$PKGNAM-$VERSION +cp -a doc/*.{html,png} $PKG/usr/doc/$PKGNAM-$VERSION/html +find $PKG/usr/doc -type f -exec chmod 0644 {} \+ +# In case this is empty: +rmdir $PKG/usr/doc/$PKGNAM-$VERSION/html 2> /dev/null + +# If there's a ChangeLog, installing at least part of the recent history +# is useful, but don't let it get totally out of control: +if [ -r ChangeLog ]; then + DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION) + cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog + touch -r ChangeLog $DOCSDIR/ChangeLog +fi + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |