diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-15 15:33:46 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-16 08:20:09 +0700 |
commit | 0a227ffd5675ccbc37000878c0e331221fdedf41 (patch) | |
tree | a4a87403e79720088de8a762d29734a48c763d1f /libraries/libvmdk/libvmdk.SlackBuild | |
parent | 9db8b4926857aad2c1be7e689d1477f8a352c0ac (diff) | |
download | slackbuilds-0a227ffd5675ccbc37000878c0e331221fdedf41.tar.gz |
libraries/libvmdk: Updated for version 20210807.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libvmdk/libvmdk.SlackBuild')
-rw-r--r-- | libraries/libvmdk/libvmdk.SlackBuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/libraries/libvmdk/libvmdk.SlackBuild b/libraries/libvmdk/libvmdk.SlackBuild index 77fce89cde..9249ff4b0d 100644 --- a/libraries/libvmdk/libvmdk.SlackBuild +++ b/libraries/libvmdk/libvmdk.SlackBuild @@ -24,25 +24,26 @@ # Updated v20210418 August 2021 +# 20220215 bkw: Modified by SlackBuilds.org: +# - update for v20210807 since the old version's source vanished. +# - don't install useless ABOUT-NLS and INSTALL in doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libvmdk -VERSION=${VERSION:-20210418} -BUILD=${BUILD:-2} +VERSION=${VERSION:-20210807} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; 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 @@ -52,8 +53,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -77,9 +78,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 -std=gnu89" \ CXXFLAGS="$SLKCFLAGS -std=gnu89" \ @@ -95,12 +96,10 @@ CXXFLAGS="$SLKCFLAGS -std=gnu89" \ make make install-strip DESTDIR=$PKG - -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 +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -ar ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la |