diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-04 10:28:45 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-04 10:31:11 +0700 |
commit | 03f93f4ba29c898ec4d94d46eb5bc98f08daac27 (patch) | |
tree | 29e29d00edde58e7c271fb5f01d3e89b35cd1ef5 /libraries/appstream-glib | |
parent | f12ed97819be5d5e36b1663aa5e374bbadd0666d (diff) | |
download | slackbuilds-03f93f4ba29c898ec4d94d46eb5bc98f08daac27.tar.gz |
libraries/appstream-glib: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/appstream-glib')
-rw-r--r-- | libraries/appstream-glib/appstream-glib.SlackBuild | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libraries/appstream-glib/appstream-glib.SlackBuild b/libraries/appstream-glib/appstream-glib.SlackBuild index 3574bda47f..4714dd7409 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 |