pkgname=appstream-glib pkgver=0.8.3 pkgdesc="Provides GObjects and helper methods to read and write AppStream metadata" homepage="https://people.freedesktop.org/~hughsient/appstream-glib/ https://github.com/hughsie/appstream-glib" license=("LGPL-2.1+") slot=("0/8") depend=( glib util-linux libarchive curl json-glib "gdk-pixbuf[introspection]" fontconfig libyaml pango gobject-introspection ) bdepends=( gperf libxml2:2 libxslt gettext ) sources=("${pkgname}-${pkgver}.tar.xz") urls=("https://people.freedesktop.org/~hughsient/${pkgname}/releases/${sources[0]}") sha512sums=("df4247b710cf234eef037f5f7be6be4872638d0686becd65e10e6a4214b0dd1b48ffbbd69179f3fb9777373926840d5b776e20a41ce11d4926114345944db127") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { local meson_args=( --prefix=/usr --buildtype=release --wrap-mode=nodownload -D python.bytecompile=1 -D dep11=true -D builder=true -D rpm=false -D alpm=false -D fonts=false -D man=true -D gtk-doc=false -D introspection=true ) meson setup build "${meson_args[@]}" meson compile -C build } src_install() { meson install -C build --destdir "$pkgdir" } # vim:ft=sh syn=sh et sw=2: