Date: Monday, December 24, 2018 @ 19:07:30 Author: bgyorgy Revision: 417848
upgpkg: gnome-recipes 2.0.2-3 Fix AppStream metadata Modified: gnome-recipes/trunk/PKGBUILD ----------+ PKGBUILD | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-12-24 18:32:56 UTC (rev 417847) +++ PKGBUILD 2018-12-24 19:07:30 UTC (rev 417848) @@ -2,7 +2,7 @@ pkgname=gnome-recipes pkgver=2.0.2 -pkgrel=2 +pkgrel=3 pkgdesc="Recipe management application for GNOME" arch=(x86_64) url="https://wiki.gnome.org/Apps/Recipes" @@ -15,20 +15,22 @@ prepare() { mkdir build + cd $pkgname-$pkgver + + # Don't use legacy path for AppStream metainfo file + # https://gitlab.gnome.org/GNOME/recipes/issues/54 + sed -i "s/install_dir: join_paths(\[datadir,'appdata'\])/install_dir: join_paths([datadir,'metainfo'])/" data/meson.build } build() { - cd build - meson --prefix=/usr --buildtype=release ../$pkgname-$pkgver - ninja + arch-meson $pkgname-$pkgver build + ninja -C build } check() { - cd build - ninja test + meson test -C build } package() { - cd build - DESTDIR="$pkgdir" ninja install + DESTDIR="$pkgdir" meson install -C build }
