summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c09141dd2b14c1a1784a50d81da8d861be196611 (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
# Maintainer: Josip Janzic <hi@josip.dev>
# Contributor: Daniel Bermond <dbermond@archlinux.org>
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: Scimmia

pkgbase=wayland-hi-res-scroll-git
pkgname=('wayland-hi-res-scroll-git' 'wayland-docs-hi-res-scroll-git')
pkgver=1.19.0.r3.gddf21af
pkgrel=1
pkgdesc='A computer display server protocol (git version). Patched with support for hi-res scroll event. https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/72'
arch=('x86_64')
url='https://wayland.freedesktop.org/'
license=('MIT')
depends=('glibc' 'libffi' 'expat' 'libxml2')
makedepends=('git' 'meson' 'ninja' 'libxslt' 'doxygen' 'xmlto' 'graphviz' 'docbook-xsl')
source=('git+https://gitlab.freedesktop.org/wayland/wayland.git'
        '72.diff')
sha256sums=('SKIP'
        'SKIP')

pkgver() {
    git -C wayland describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    meson build wayland --buildtype='release' --prefix='/usr'
}


prepare() {
    cd wayland
    patch -Np1 -i ../72.diff
}


check() {
    ninja -C build test
}

package_wayland-hi-res-scroll-git() {
    provides=("wayland=${pkgver}")
    conflicts=('wayland')

    DESTDIR="$pkgdir" ninja -C build install
    mkdir -p docs/share
    mv "${pkgdir}/usr/share/"{doc,man} docs/share
    install -D -m644 wayland/COPYING "$p{kgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

package_wayland-docs-hi-res-scroll-git() {
    pkgdesc+=' (documentation)'
    arch=('any')
    depends=()
    provides=("wayland-docs=${pkgver}")
    conflicts=('wayland-docs')

    mv docs "${pkgdir}/usr"
    install -D -m644 wayland/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}