summaryrefslogtreecommitdiffstats
path: root/source/l/gjs/gjs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/gjs/gjs.SlackBuild')
-rwxr-xr-xsource/l/gjs/gjs.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/source/l/gjs/gjs.SlackBuild b/source/l/gjs/gjs.SlackBuild
index b5bea6bb3..8b3c5d146 100755
--- a/source/l/gjs/gjs.SlackBuild
+++ b/source/l/gjs/gjs.SlackBuild
@@ -1,8 +1,6 @@
#!/bin/sh
#
-# Slackware build script for gjs
-#
-# Copyright 2020 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2020, 2023 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=gjs
VERSION=${VERSION:-$(echo gjs-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -85,7 +83,8 @@ export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"
mkdir meson-build
cd meson-build
-meson setup \
+# Use "unshare -n" to avoid downloading sysprof:
+unshare -n meson setup \
--prefix=/usr \
--libdir=lib${LIBDIRSUFFIX} \
--libexecdir=/usr/libexec \
@@ -97,14 +96,12 @@ meson setup \
--sysconfdir=/etc \
--localstatedir=/var \
--buildtype=release \
+ -Dinstalled_tests=false \
.. || exit 1
"${NINJA:=ninja}" $NUMJOBS || exit 1
DESTDIR=$PKG $NINJA install || exit 1
cd ..
-# Don't ship .la files:
-rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
-
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null