#!/bin/sh
#
# Install AppStream Generator build dependencies
#
set -e
set -x

# update caches
dnf makecache

# install dependencies
dnf --assumeyes --quiet --setopt=install_weak_deps=False install \
    curl \
    gdb \
    gcc \
    gcc-c++ \
    gcc-gdc \
    git-core \
    meson \
    gettext \
    gir-to-d \
    gnupg \
    gperf \
    docbook-dtds \
    docbook-style-xsl \
    ldc \
    libasan \
    libstemmer-devel \
    libubsan \
    'pkgconfig(cairo)' \
    'pkgconfig(freetype2)' \
    'pkgconfig(fontconfig)' \
    'pkgconfig(gdk-pixbuf-2.0)' \
    'pkgconfig(glib-2.0)' \
    'pkgconfig(gobject-2.0)' \
    'pkgconfig(gio-2.0)' \
    'pkgconfig(glibd-2.0)' \
    'pkgconfig(gobject-introspection-1.0)' \
    'pkgconfig(libarchive)' \
    'pkgconfig(libcurl)' \
    'pkgconfig(librsvg-2.0)' \
    'pkgconfig(libxml-2.0)' \
    'pkgconfig(libsystemd)' \
    'pkgconfig(xmlb)' \
    'pkgconfig(lmdb)' \
    'pkgconfig(pango)' \
    'pkgconfig(yaml-0.1)' \
    sed \
    xmlto \
    itstool \
    diffutils \
    /usr/bin/ffmpeg \
    /usr/bin/node \
    /usr/bin/xsltproc \
    /usr/bin/yarnpkg
