summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5868915ef41ecc1dafc90ea5328facfec999c1a1 (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
# Maintainer: Lex Black <autumn-wind@web.de>

_pkgname=labwc
pkgname=labwc-hdr-metadata-git
pkgver=0.20.1.r0.g529fc382
pkgrel=1
pkgdesc='stacking wayland compositor with look and feel from openbox (HDR metadata test)'
url="https://github.com/labwc/labwc"
arch=('x86_64')
license=('GPL-2.0-only')
depends=('libpng' 'librsvg' 'libsfdo' 'pango' 'seatd' 'ttf-font' 'wlroots-hidpi-xprop-hdr-metadata-git' 'wayland')
makedepends=('git' 'meson' 'scdoc' 'wayland-protocols' 'xorg-xwayland')
optdepends=("bemenu: default launcher via Alt+F3"
            "xorg-xwayland: X11 support")
conflicts=(labwc-git labwc)
provides=(labwc-git labwc)
source=("git+https://github.com/labwc/${_pkgname}.git"
        'labwc-format-check.patch'
        'labwc-wlroots021.patch')
md5sums=('SKIP'
         'd632d08efedc7edf4ad2967f0030c5c6'
         'ef4fd56827dcf781c07e2a4ce5f90c00')


pkgver() {
  cd "$_pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$_pkgname"
  patch -Np1 -i ../labwc-format-check.patch
  patch -Np1 -i ../labwc-wlroots021.patch
}

build() {
  arch-meson -Dman-pages=enabled "$_pkgname" build
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}