# Contributor: Leo # Contributor: Rasmus Thomsen # Maintainer: Pablo Correa Gomez pkgname=appstream pkgver=0.16.1 pkgrel=4 pkgdesc="Provides a standard for creating app stores across distributions" url="https://distributions.freedesktop.org/wiki/AppStream" arch="all" license="LGPL-2.1-or-later" makedepends=" cairo-dev curl-dev fontconfig-dev gdk-pixbuf-dev glib-dev gobject-introspection-dev gperf itstool librsvg-dev libxml2-dev libxmlb-dev meson pango-dev qt5-qtbase-dev yaml-dev " triggers="$pkgname.trigger=/usr/share/app-info/*:/var/cache/swcatalog/xml" install="$pkgname.post-install $pkgname.post-upgrade" subpackages=" $pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-qt $pkgname-compose $pkgname-lang " source="https://www.freedesktop.org/software/appstream/releases/AppStream-$pkgver.tar.xz fix-warnings-newglib.patch search-translations-crash.patch " builddir="$srcdir/AppStream-$pkgver" build() { abuild-meson \ -Db_lto=true \ -Dqt=true \ -Dsystemd=false \ -Ddocs=false \ -Dapidocs=false \ -Dinstall-docs=false \ -Dstemming=false \ -Dvapi=false \ -Dapt-support=false \ -Dgir=true \ -Dcompose=true \ . output meson compile -C output } check() { XDG_RUNTIME_DIR="$builddir" \ meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output # Remove installed-tests, there is no switch to disable installing them rm -rf "$pkgdir"/usr/share/installed-tests } compose() { pkgdesc="Building blocks to compose AppStream metadata" amove usr/lib/libappstream-compose* amove usr/lib/girepository-*/AppStreamCompose* # Needs so:libappstream-compose.so and thus needs # to be moved to prevent a recursive dependency. amove usr/libexec/appstreamcli-compose } qt() { pkgdesc="Qt5 interface for AppStream" amove usr/lib/libAppStreamQt.so.* } sha512sums=" 79e139bd0f54534aa37c21d24309c33ee936e737149d6fa5ba0ec50e8ade33c2951d0b1e2ff15729e2a4d274ff1f7ca734bb70efa94539d87a3f949a07fb7d9e AppStream-0.16.1.tar.xz 95dfbcfbbf06dac9537645b7e403ecf981e61ada68f040390c16f40fd6b7ec884eb7e67c7d7693110849f22e8862b0a930f4346a403a196ea9172ff4539848d0 fix-warnings-newglib.patch 3aa829d38040262995133d2e25191e1b51026ae8b90b47b6a4e9eb2c4d40ed28ddd1f74f4133205db2506c540799087111756fe69b9c0dfe23fe029920a54784 search-translations-crash.patch "