aboutsummaryrefslogtreecommitdiff
path: root/libraries/appstream-glib/appstream-glib.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2018-03-15 08:15:29 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-03-17 08:51:51 +0700
commitaf9271e4344ea54e0f08d7495f7b72eefc226d07 (patch)
tree723dec3b53f5d93b352a4ac8ec6bfe5c516ed3bb /libraries/appstream-glib/appstream-glib.SlackBuild
parent5b15274e7dcf04ffe2cf1c0461f0d69904f4d11a (diff)
libraries/appstream-glib: Updated for version 0.7.7.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
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 2df9340c681a..160e8f2f38db 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