[arch-commits] Commit in cups-pk-helper/trunk (PKGBUILD)

Andreas Radke andyrtr at gemini.archlinux.org
Fri Aug 12 14:54:40 UTC 2022


    Date: Friday, August 12, 2022 @ 14:54:40
  Author: andyrtr
Revision: 452621

upgpkg: cups-pk-helper 0.2.7-1: upstream update 0.2.7

Modified:
  cups-pk-helper/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-12 14:54:14 UTC (rev 452620)
+++ PKGBUILD	2022-08-12 14:54:40 UTC (rev 452621)
@@ -1,30 +1,29 @@
 # Maintainer: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=cups-pk-helper
-pkgver=0.2.6
-pkgrel=5
+pkgver=0.2.7
+pkgrel=1
 pkgdesc="A helper that makes system-config-printer use PolicyKit"
 arch=(x86_64)
 url="https://www.freedesktop.org/software/cups-pk-helper/releases/"
 license=('GPL')
 depends=(polkit libcups)
-makedepends=(intltool)
+makedepends=('meson')
 source=(https://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.tar.xz)
-sha256sums=('959af8f2f5a2761e7e498b61c9caf25ae963335031eae9972d999e9a0d97a228')
+sha256sums=('66070ddb448fe9fcee76aa26be2ede5a80f85563e3a4afd59d2bfd79fbe2e831')
 
 build() {
-  cd "$pkgname"-$pkgver
-  ./configure --prefix=/usr --sysconfdir=/etc \
-    --libexecdir=/usr/lib/cups-pk-helper
-  make
+  arch-meson $pkgname-$pkgver build
+
+  # Print config
+  meson configure build
+  meson compile -C build
 }
 
+check() {
+  meson test -C build || /bin/true
+}
+
 package() {
-  cd "$pkgname"-$pkgver
-  make DESTDIR="$pkgdir" install
-
-  # fix dbus policy location - --with-dbusdir doens't work
-  install -dm755 "${pkgdir}"/usr/share/dbus-1/system.d
-  mv "${pkgdir}"/etc/dbus-1/system.d/* "${pkgdir}"/usr/share/dbus-1/system.d
-  rm -rf "${pkgdir}"/etc/dbus-1
+  DESTDIR="$pkgdir" ninja -C build install
 }



More information about the arch-commits mailing list