diff options
Diffstat (limited to 'system/MySQL-Sandbox/MySQL-Sandbox.SlackBuild')
-rw-r--r-- | system/MySQL-Sandbox/MySQL-Sandbox.SlackBuild | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/system/MySQL-Sandbox/MySQL-Sandbox.SlackBuild b/system/MySQL-Sandbox/MySQL-Sandbox.SlackBuild index e322d8e24a1d..ed4391cacf0e 100644 --- a/system/MySQL-Sandbox/MySQL-Sandbox.SlackBuild +++ b/system/MySQL-Sandbox/MySQL-Sandbox.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for MySQL-Sandbox -# Copyright (c) 2010-2013, Dhaby Xiloj <slack.dhabyx@gmail.com> +# Copyright (c) 2010-2016, Dhaby Xiloj <slack.dhabyx@gmail.com> Guatemala # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -22,7 +22,7 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=MySQL-Sandbox -VERSION=${VERSION:-3.1.05} +VERSION=${VERSION:-3.1.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -39,10 +39,10 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="Changelog README.md" +DOCS="Changelog LICENSE README.md" -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" @@ -71,26 +71,22 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; perl Makefile.PL \ - PREFIX=/usr \ - INSTALLDIRS=vendor \ - INSTALLVENDORMAN3DIR=/usr/man/man3 + PREFIX=/usr \ + INSTALLDIRS=vendor \ + INSTALLVENDORMAN3DIR=/usr/man/man3 make OPTIMIZE="$SLKCFLAGS" make install DESTDIR=$PKG -# Remove 'special' files -find $PKG -name perllocal.pod \ - -o -name ".packlist" \ - -o -name "*.bs" \ - | xargs rm -f -eval $(perl -V:vendorarch) -rm -rf $PKG/$vendorarch $PKG/usr/lib${LIBDIRSUFFIX}/ - 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 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 +find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true + +find $PKG -depth -type d -empty -delete || true + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -ar $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |