From af225f9eaf6708ba6f0b44d47cf68a6b995c83a3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 19 Apr 2022 18:30:22 -0400 Subject: libraries/udunits: Fix docs. Signed-off-by: B. Watson --- libraries/udunits/udunits.SlackBuild | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'libraries') diff --git a/libraries/udunits/udunits.SlackBuild b/libraries/udunits/udunits.SlackBuild index 0e5db61e8274a..40af8e42cf5fa 100644 --- a/libraries/udunits/udunits.SlackBuild +++ b/libraries/udunits/udunits.SlackBuild @@ -21,11 +21,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220419 bkw: Modified by SlackBuilds.org, BUILD=4: +# - fix broken symlink in doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=udunits VERSION=${VERSION:-2.2.28} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -37,9 +40,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 @@ -74,9 +74,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 \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -92,18 +92,21 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux 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 rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/*.info* -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a BACKLOG CHANGE_LOG COPYRIGHT README \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION + +# 20220419 bkw: 'make install' tries to symlink the *.xml files +# to the doc dir, but fails because it expects the doc dir to be +# /usr/share/doc. +rm -f $PKGDOC/*.xml +( cd $PKGDOC ; ln -s ../../share/$PRGNAM/*.xml . ) + +cp -a BACKLOG CHANGE_LOG COPYRIGHT README $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la -- cgit v1.2.3