[arch-commits] Commit in appstream/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue Dec 1 07:22:53 UTC 2020


    Date: Tuesday, December 1, 2020 @ 07:22:52
  Author: arojas
Revision: 402445

Update to 0.13.1

Modified:
  appstream/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-01 03:55:11 UTC (rev 402444)
+++ PKGBUILD	2020-12-01 07:22:52 UTC (rev 402445)
@@ -4,7 +4,7 @@
 
 pkgbase=appstream
 pkgname=(appstream appstream-qt)
-pkgver=0.12.11
+pkgver=0.13.1
 pkgrel=1
 pkgdesc="Provides a standard for creating app stores across distributions"
 arch=(x86_64)
@@ -14,34 +14,26 @@
 makedepends=(meson xmlto gobject-introspection gtk-doc qt5-tools itstool vala gperf)
 source=("https://www.freedesktop.org/software/appstream/releases/AppStream-$pkgver.tar.xz"{,.asc}
         update-appstream-cache.hook)
-sha256sums=('194d871ae057c6bf2b5a95e98d77da2b0107996f593b2ac0b0b88fa8ba452f11'
+sha256sums=('ba7de61223aaa76d8c47d8857bf185c28d4c2a099f3ab02c8837091e7e8f8626'
             'SKIP'
             '3a96a1479cfd18dad36c2ca3181aabe46af9bf772c00b965d86ec5f55cd0e0eb')
 validpgpkeys=(D33A3F0CA16B0ACC51A60738494C8A5FBF4DECEB) # Matthias Klumpp <matthias at tenstral.net>
 
-prepare() {
-  mkdir -p build
-}
-
 build() {
-  cd build
-
-  meson ../AppStream-$pkgver \
+  meson build AppStream-$pkgver \
     --prefix=/usr \
     -Dqt=true \
     -Dvapi=true
-  ninja
+  ninja -C build
 }
 
 package_appstream() {
-  cd build
+  DESTDIR="$pkgdir" ninja install -C build
 
-  DESTDIR="$pkgdir" ninja install
-
 # provided by -qt subpackage
   rm -r "$pkgdir"/usr/{include/AppStreamQt,lib/cmake,lib/libAppStreamQt.*}
 
-  install -Dm644 "$srcdir"/update-appstream-cache.hook "$pkgdir"/usr/share/libalpm/hooks/update-appstream-cache.hook
+  install -Dm644 update-appstream-cache.hook "$pkgdir"/usr/share/libalpm/hooks/update-appstream-cache.hook
 }
 
 package_appstream-qt() {
@@ -48,8 +40,7 @@
   pkgdesc='Qt5 interface for AppStream'
   depends=(appstream qt5-base)
 
-  cd build
-  DESTDIR="$pkgdir" ninja install
+  DESTDIR="$pkgdir" ninja install -C build
 
 # provided by appstream
   rm -r "$pkgdir"{/etc,/usr/{bin,include/appstream,lib/{girepository-1.0,libappstream*,pkgconfig},share}}



More information about the arch-commits mailing list