[Slackbuilds-users] libpng-legacy12.SlackBuild patch for MultiLib

Konrad J Hambrick kjhambrick at gmail.com
Sat Jan 7 13:11:40 UTC 2017


B. Watson / Willy --

I am running Slackware64 14.2 + Multilib and in order to make TeamViewer
work, I had to install a 32-bit version of libpng-legacy12

I also went ahead and installed the 64 bit version as well and that caused
a 'dupe package' error in my `find-sbo-updates.sh` script.

As a work-around, and more-or-less in keeping with Alien Bob's convention
of appending -compat32 to the $PRGNAM for his 32-bit versions of standard
Slackware Packages, I've patched libpng-legacy12.SlackBuild to append
'-32bit' to the $PRGNAM when building an ARCH=i486 Package on a `uname -m`
= X86_64 machine.

Not sure this is in keeping with the SBo Rules but it works for me :)

Thanks for all your SBo goodies !

-- kjh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170107/b7fb820f/attachment.html>
-------------- next part --------------
--- libpng-legacy12.SlackBuild.orig	2017-01-07 02:03:35.740033740 -0600
+++ libpng-legacy12.SlackBuild	2017-01-07 05:59:15.056645968 -0600
@@ -31,7 +31,15 @@
  x86_64) LIBDIRSUFFIX="64" ;;
       *) echo "Warning: unrecognized ARCH '$ARCH'" ;;
 esac
-
+#
+# kjh added this for MultiLib
+#
+REALARCH="$(uname -m)"
+
+[ "$REALARCH" = "x86_64" -a "$ARCH" = "i486" ] && ATAG="-32bit" || ATAG=""
+#
+# kjh added that for MultiLib
+#
 CWD=$(pwd)
 TMP=${TMP:-/tmp/SBo}
 PKG=$TMP/package-$PRGNAM
@@ -66,4 +74,4 @@
 grep libpng12.so ./install/doinst.sh > $PKG/install/doinst.sh
 
 cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM${ATAG}-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}


More information about the SlackBuilds-users mailing list