summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87668de57f9af4f57ca06f8a8898831a79483727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Aaron Plattner <aplattner@nvidia.com>
# Contributor: Miguel A. Vico <mvicomoya@nvidia.com>
# Contributor: Eric Toombs
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: S├ębastien Luttringer
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgname=weston-eglstream-nosystemd-git
pkgver=9.0.0
pkgrel=1
pkgdesc='Reference implementation of a Wayland compositor with EGLStream support'
arch=('x86_64')
url='https://wayland.freedesktop.org/'
license=('MIT')
depends=('wayland' 'libxkbcommon' 'libinput' 'libjpeg-turbo' 'libwebp'
         'libegl' 'libgles' 'pango' 'libva' 'libxcursor' 'colord' 'libpipewire02'
         'egl-wayland')	 
makedepends=('meson' 'wayland-protocols' 'ninja')
provides=('weston' 'weston-eglstream' 'weston-eglstream-nosystemd')
conflicts=('weston' 'weston-eglstream' 'weston-eglstream-nosystemd')
source=("git+https://github.com/wayland-project/weston"
        '0001-gl-renderer-Add-EGLDevice-enumeration-support.patch'
        '0002-gl-renderer-Add-support-for-EGLDevice-composited-fra.patch'
        '0003-gl-renderer-Add-EGL-client-support-for-EGLStream-fra.patch'
        '0004-backend-drm-Gracefully-handle-vblank-and-flip-invali.patch'
        '0005-backend-drm-Add-support-for-EGLDevice-EGLOutput.patch'
        '0006-compositor-Process-stream-attach-requests-with-wl_eg.patch')
sha256sums=('SKIP'
	    'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
 _basever="$(cat "$_basename/meson.build" | \
 sed -n 's/.*version:\s*'\''\([0-9.]\+\)'\''.*/\1/p')"
 cd "$_basename"echo "$_basever.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
    #cd weston-$pkgver
    cd weston

    patch -Np1 -i "${srcdir}/0001-gl-renderer-Add-EGLDevice-enumeration-support.patch"
    patch -Np1 -i "${srcdir}/0002-gl-renderer-Add-support-for-EGLDevice-composited-fra.patch"
    patch -Np1 -i "${srcdir}/0003-gl-renderer-Add-EGL-client-support-for-EGLStream-fra.patch"
    patch -Np1 -i "${srcdir}/0004-backend-drm-Gracefully-handle-vblank-and-flip-invali.patch"
    patch -Np1 -i "${srcdir}/0005-backend-drm-Add-support-for-EGLDevice-EGLOutput.patch"
    patch -Np1 -i "${srcdir}/0006-compositor-Process-stream-attach-requests-with-wl_eg.patch"
}

build() {
    #arch-meson weston-$pkgver build
    arch-meson "build" "weston"
        -Dbackend-drm-screencast-vaapi=false \
        -Dscreenshare=false -Dbackend-rdp=false -Dshell-ivi=false \
        -Dsimple-dmabuf-drm= -Dremoting=false -Dlauncher-logind=false -Dsystemd=false
    ninja $NINJAFLAGS -C "build"
}

package() {
    DESTDIR="$pkgdir" ninja $NINJAFLAGS -C "build" install
    install -Dm644 "weston/COPYING" "$pkgdir/usr/share/licenses/weston-eglstream/COPYING"
}