description='Provides a standard for creating app stores across distributions'
url='https://distributions.freedesktop.org/wiki/AppStream'

license="LGPL2.1"

packager="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(meson xmlto gobject-introspection gtk-doc itstool vala gperf
             curl librsvg yaml libsoup libxmlb libepoxy)

name=appstream
version=1.0.3

source=(https://www.freedesktop.org/software/appstream/releases/AppStream-$version.tar.xz)

prepare() {
mv AppStream-$version $name-$version
}

build() {
cd $name-$version
mkdir build
cd    build

meson setup .. \
      --prefix=/usr \
      --libexecdir=lib \
      -Dstemming=false \
      -Dqt=false  \
      -Dvapi=true \
      -Dcompose=true

ninja
DESTDIR=$PKG ninja install

install -Dm644 ../COPYING $PKG/usr/share/licenses/$name/COPYING
}
