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

Sébastien Luttringer seblu at archlinux.org
Thu Mar 28 14:01:31 UTC 2019


    Date: Thursday, March 28, 2019 @ 14:01:30
  Author: seblu
Revision: 445347

upgpkg: weston 6.0.0-1

Modified:
  weston/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-28 13:59:41 UTC (rev 445346)
+++ PKGBUILD	2019-03-28 14:01:30 UTC (rev 445347)
@@ -15,13 +15,28 @@
 makedepends=('wayland-protocols' 'meson' 'ninja')
 validpgpkeys=('C7223EBE4EF66513B892598911A30156E0E67611' # Bryce Harrington
               'C0066D7DB8E9AC6844D728715E54498E697F11D7') # Derek Foreman
-source=("https://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"{,.sig})
+source=("https://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"{,.sig}
+        "https://gitlab.freedesktop.org/wayland/weston/commit/cbffca980b19fd6a6de14d9f2b4dca6a7711d9e0.patch")
 md5sums=('7c634e262f8a464a076c97fd50ad36b3'
-         'SKIP')
+         'SKIP'
+         '58467d89c63213af991d29035882d376')
 
+prepare() {
+  cd $pkgname-$pkgver
+  # apply patch from the source array (should be a pacman feature)
+  local src
+  for src in "${source[@]}"; do
+    src="${src%%::*}"
+    src="${src##*/}"
+    [[ $src = *.patch ]] || continue
+    msg2 "Applying patch $src..."
+    patch -Np1 < "../$src"
+  done
+}
+
 build() {
   meson $pkgname-$pkgver build \
-    --prefix=/usr -Dsimple-dmabuf-drm=auto
+    --prefix=/usr --libexec=lib/weston -Dsimple-dmabuf-drm=auto
   ninja -C build
 }
 


More information about the arch-commits mailing list