db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / egl-wayland / repos / extra-x86_64 / PKGBUILD
blobb5713a59c44707bfca355febd32b44964660f4a3
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=egl-wayland
4 pkgver=1.1.11
5 pkgrel=4
6 epoch=2
7 pkgdesc="EGLStream-based Wayland external platform"
8 url="https://github.com/NVIDIA/egl-wayland"
9 arch=(x86_64)
10 license=(MIT)
11 depends=(
12   eglexternalplatform
13   wayland
15 makedepends=(
16   git
17   'libglvnd>=1.3.4'
18   meson
19   wayland-protocols
21 provides=(libnvidia-egl-wayland.so)
22 _commit=1bac4260aa89c4938246798f3a141500ed9daa10  # tags/1.1.11
23 source=(
24   "git+$url#commit=$_commit"
25   0001-Destroy-all-created-wayland-object-in-terminateDispl.patch
26   0002-Fix-wrong-destruction-order-for-event-queue.patch
27   10_nvidia_wayland.json
29 b2sums=('SKIP'
30         'b54d31b2b086d2b9e00ca226acb47e1a7bd071d9e45af87e68c28bd6e661f009213ac92eaf6161e0c8e8b8ff91850f598c0417051c1fd90c2f5f1fa4f1f4a43b'
31         '2d669bf533983616f43aa4c6aa710e27a9f1fbb53c77697709ec9d4bc25e7d99a7fb0069daa17ba690c293e581b983ae61d0140064592b75d01a8fd976cc9c66'
32         'b10206c742e8966d1192b9b0604137e6b296d2be74a437841c63844c0716343578b11565a34fb4c534d5908c0b5775305581b68039a6ff9ed7421c9d385a2b7a')
34 pkgver() {
35   cd $pkgname
36   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
39 prepare() {
40   cd $pkgname
42   # https://bugs.archlinux.org/task/77260
43   # https://github.com/NVIDIA/egl-wayland/pull/74
44   git apply -3 ../0001-Destroy-all-created-wayland-object-in-terminateDispl.patch
46   # https://bugs.archlinux.org/task/78143
47   # https://github.com/NVIDIA/egl-wayland/pull/79
48   git apply -3 ../0002-Fix-wrong-destruction-order-for-event-queue.patch
51 build() {
52   arch-meson $pkgname build
53   meson compile -C build
56 check() {
57   meson test -C build --print-errorlogs
60 package() {
61   meson install -C build --destdir "$pkgdir"
62   install -Dt "$pkgdir/usr/share/egl/egl_external_platform.d" -m644 10_nvidia_wayland.json
63   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/COPYING
66 # vim:set sw=2 sts=-1 et: