aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-04 10:28:45 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-04 10:31:11 +0700
commit03f93f4ba29c898ec4d94d46eb5bc98f08daac27 (patch)
tree29e29d00edde58e7c271fb5f01d3e89b35cd1ef5 /libraries
parentf12ed97819be5d5e36b1663aa5e374bbadd0666d (diff)
libraries/appstream-glib: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/appstream-glib/appstream-glib.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/libraries/appstream-glib/appstream-glib.SlackBuild b/libraries/appstream-glib/appstream-glib.SlackBuild
index 3574bda47f304..4714dd7409912 100644
--- a/libraries/appstream-glib/appstream-glib.SlackBuild
+++ b/libraries/appstream-glib/appstream-glib.SlackBuild
@@ -80,6 +80,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+mkdir -p build
+cd build
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
meson \
@@ -89,14 +91,15 @@ meson \
--mandir=/usr/man \
-Dgtk-doc=true \
-Dstemmer=false \
- build
+ ..
# not sure why this is necessary
-sed -i "/^ COMMAND = \\/usr\\/bin\\/g-ir-scanner/s/-lyaml//" build/build.ninja
+sed -i "/^ COMMAND = \\/usr\\/bin\\/g-ir-scanner/s/-lyaml//" build.ninja
"${NINJA:=ninja}"
-$NINJA -C build
-DESTDIR=$PKG $NINJA -C build install
+$NINJA
+DESTDIR=$PKG $NINJA install
+cd ..
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