diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-24 16:56:14 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-29 10:30:53 -0400 |
commit | eff7014aa5c2714c86237c7355f06e7a8018cca4 (patch) | |
tree | 1efa7de9d0775ca631c84be846e11dcb2ef4288e | |
parent | 5d238b61c8ed858fc4a5a496901c312796883a39 (diff) | |
download | slackbuilds-eff7014aa5c2714c86237c7355f06e7a8018cca4.tar.gz |
libraries/slv2: Strip binaries.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r-- | libraries/slv2/slv2.SlackBuild | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/libraries/slv2/slv2.SlackBuild b/libraries/slv2/slv2.SlackBuild index 8a9ab8d35d..fb6b4be280 100644 --- a/libraries/slv2/slv2.SlackBuild +++ b/libraries/slv2/slv2.SlackBuild @@ -22,25 +22,28 @@ # 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: +# - strip binaries and libraries. +# - don't run ldconfig while bulding. +# - i486 => i586. +# - remove useless INSTALL from doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=slv2 VERSION=${VERSION:-0.6.6} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} 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 @@ -50,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" @@ -75,9 +78,12 @@ 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 {} \+ + +# 20220424 bkw: don't run ldconfig in 'waf install'. +sed -i 's,/sbin/ldconfig,/bin/true,' autowaf.py # In the newer lv2 the pkgconfig file is named differently... sed -i "s|lv2core|lv2|" wscript @@ -92,16 +98,17 @@ CXXFLAGS="$SLKCFLAGS" \ ./waf build ./waf install --destdir=$PKG +strip $PKG/usr/bin/* $PKG/usr/lib*/*.so.*.*.* if [ "$LIBDIRSUFFIX" != "" ]; then sed -i "s,/lib,/lib$LIBDIRSUFFIX," \ $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc fi -find $PKG/usr/man -type f -exec gzip -9 {} \; +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog COPYING INSTALL README \ +cp -a AUTHORS ChangeLog COPYING README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |