summaryrefslogtreecommitdiff
path: root/libraries/appstream-glib/appstream-glib.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/appstream-glib/appstream-glib.SlackBuild')
-rw-r--r--libraries/appstream-glib/appstream-glib.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/libraries/appstream-glib/appstream-glib.SlackBuild b/libraries/appstream-glib/appstream-glib.SlackBuild
index 2df9340c68..160e8f2f38 100644
--- a/libraries/appstream-glib/appstream-glib.SlackBuild
+++ b/libraries/appstream-glib/appstream-glib.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=appstream-glib
-VERSION=${VERSION:-0.7.6}
+VERSION=${VERSION:-0.7.7}
SRCVERSION=$(echo "$PRGNAM" | tr - _)_$(echo "$VERSION" | tr . _)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -72,22 +72,20 @@ find -L . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
+meson \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--mandir=/usr/man \
- --enable-gtk-doc \
- --disable-stemmer
+ -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/build.ninja
-# thanks ricardo j. barberis
-sed -i 's,../libappstream-glib/libappstream-glib/,../libappstream-glib/,g' _build/build.ninja
-
-make
-make install DESTDIR=$PKG
+ninja -C build
+DESTDIR=$PKG ninja -C build install
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