diff options
Diffstat (limited to 'libraries/SDL_gfx/SDL_gfx.SlackBuild')
-rw-r--r-- | libraries/SDL_gfx/SDL_gfx.SlackBuild | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/libraries/SDL_gfx/SDL_gfx.SlackBuild b/libraries/SDL_gfx/SDL_gfx.SlackBuild index 09d6452884..2e220c44ac 100644 --- a/libraries/SDL_gfx/SDL_gfx.SlackBuild +++ b/libraries/SDL_gfx/SDL_gfx.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for: SDL_gfx # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org +# Klaatu <klaatu@member.fsf.org> | Lawrence NZ # Copyright 2007-2011 Michiel van Wessem, Leicester, United Kingdom # All rights reserved. @@ -24,11 +25,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220414 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix doc permissions. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=SDL_gfx -VERSION=${VERSION:-2.0.25} -BUILD=${BUILD:-1} +VERSION=${VERSION:-2.0.26} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +44,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 @@ -81,15 +82,13 @@ rm -rf $TMP/$PRGNAM-$VERSION tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz 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 \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# 20220417 bkw: tarball perms are bletcherous, do not revert to template. +find . -type f -exec chmod 644 {} \+ +find . -type d -exec chmod 755 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure \ +sh ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ @@ -104,8 +103,10 @@ CXXFLAGS="$SLKCFLAGS" \ make make install-strip DESTDIR=$PKG +rm -f $PKG/usr/lib*/*.la + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README README-rpm Docs/* \ +cp -a AUTHORS COPYING ChangeLog LICENSE NEWS README README-rpm Docs/* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |