diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-24 12:38:33 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-24 12:38:33 -0400 |
commit | 6d10d531249dc81f37b47122fa7268249aba85bc (patch) | |
tree | 4446854cb8a19c5b1faf5b5bcba45cf28abd37b4 /libraries/libg3d | |
parent | 2257b557eeb44558fc4d593cfd905ab3e5c32587 (diff) |
libraries/libg3d: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libg3d')
-rw-r--r-- | libraries/libg3d/libg3d.SlackBuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/libraries/libg3d/libg3d.SlackBuild b/libraries/libg3d/libg3d.SlackBuild index 622f70c4fbf5..010a3202523d 100644 --- a/libraries/libg3d/libg3d.SlackBuild +++ b/libraries/libg3d/libg3d.SlackBuild @@ -22,11 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220424 bkw: Modified by SlackBuilds.org, BUILD=3: +# - get rid of empty/useless docs. +# - symlink html docs to Slackware doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libg3d VERSION=${VERSION:-0.0.8} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +42,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -75,9 +76,9 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -91,15 +92,13 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-static=yes make -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 +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \ + AUTHORS COPYING ChangeLog README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION +ln -s ../../share/gtk-doc/html/libg3d $PKG/usr/doc/$PRGNAM-$VERSION/html cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la |