|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2018 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2018,2019 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -25,13 +25,13 @@
|
|
|
|
|
# Latest appstream-glib sourcecode is available at: |
|
|
|
|
# <https://github.com/hughsie/appstream-glib>. |
|
|
|
|
# |
|
|
|
|
# Depends: l/json-glib, l/gcab, d/meson |
|
|
|
|
# Depends: l/gcab |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-appstream-glib} |
|
|
|
|
VERSION=${VERSION:-0.7.7} |
|
|
|
|
VERSION=${VERSION:-0.7.16} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-https://github.com/hughsie/appstream-glib/archive/appstream_glib_0_7_7.tar.gz} |
|
|
|
|
WGET=${WGET:-https://github.com/hughsie/appstream-glib/archive/appstream_glib_0_7_16.tar.gz} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-appstream-glib} |
|
|
|
@ -81,11 +81,6 @@ meson .. \
|
|
|
|
|
--mandir /usr/man \ |
|
|
|
|
--strip \ |
|
|
|
|
-D stemmer=false |
|
|
|
|
|
|
|
|
|
# Workaround for a Meson bug with gobject-introspection < 1.54 |
|
|
|
|
# <https://github.com/ximion/appstream/issues/146>. |
|
|
|
|
sed -i "/^ COMMAND = \\/usr\\/bin\\/g-ir-scanner/s,-lyaml ,," build.ninja |
|
|
|
|
|
|
|
|
|
ninja -j $JOBS |
|
|
|
|
DESTDIR=$PKG ninja install |
|
|
|
|
|
|
|
|
@ -94,15 +89,14 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
install -m 644 ../AUTHORS ../COPYING ../MAINTAINERS ../NEWS \ |
|
|
|
|
../README.md $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
install -m 644 ../AUTHORS ../COMMITMENT ../COPYING ../MAINTAINERS \ |
|
|
|
|
../NEWS ../README.md $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|
|
|
|
|
|
# Add dependency infos |
|
|
|
|
cat <<EOF > $PKG/install/slack-required |
|
|
|
|
json-glib |
|
|
|
|
gcab |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|