summaryrefslogtreecommitdiffstats
path: root/academic/gchemutils/gchemutils.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/gchemutils/gchemutils.SlackBuild')
-rw-r--r--academic/gchemutils/gchemutils.SlackBuild40
1 files changed, 23 insertions, 17 deletions
diff --git a/academic/gchemutils/gchemutils.SlackBuild b/academic/gchemutils/gchemutils.SlackBuild
index 72696658c8..c06dfb9ab6 100644
--- a/academic/gchemutils/gchemutils.SlackBuild
+++ b/academic/gchemutils/gchemutils.SlackBuild
@@ -22,16 +22,22 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220308 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - disable the mozilla plugin, since it doesn't build.
+# - disable the gnumeric plugin, since it doesn't build either.
+# - update the README to explain the above.
+# - do not install useless INSTALL in doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gchemutils
VERSION=${VERSION:-0.14.17}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=gnome-chemistry-utils
-MOZILLA=${MOZILLA:-YES} # Build the Mozilla plugin
+MOZILLA=${MOZILLA:-NO} # Don't build the Mozilla plugin (it doesn't build)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -41,9 +47,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
@@ -79,16 +82,22 @@ cd $SRCNAM-$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 {} \+
# Disable Mozilla plugin building if anything other than YES
# was given as an argument to MOZILLA= at runtime
-[ ! "$MOZILLA" = "YES" ] && mozplug="disable" || mozplug="enable"
+#[ ! "$MOZILLA" = "YES" ] && mozplug="disable" || mozplug="enable"
+
+# 20220308 bkw: force-disable, it no longer builds.
+mozplug=disable
+
+# 20220308 bkw: dike out the gnumeric support, since it's broken.
+sed -i.bak '/\(ver\|libspreadsheet\)/s,1\.12,999.99,g' configure
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS -std=c++14" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -103,20 +112,17 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-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
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS ChangeLog COPYING* INSTALL NEWS README TODO \
+ AUTHORS ChangeLog COPYING* NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh