# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Lex Black <autumn-wind@web.de>

pkgname=wayland-utils
pkgver=1.3.0
pkgrel=1
pkgdesc='Wayland tools to display information about current compositor'
url='https://gitlab.freedesktop.org/wayland/wayland-utils'
arch=(x86_64 aarch64)
license=(MIT)
depends=(glibc
         libdrm
         wayland)
makedepends=(git
             meson
             wayland-protocols)
source=(git+https://gitlab.freedesktop.org/wayland/$pkgname#tag=$pkgver)
sha256sums=('49ef03286317fbeeab98dce3048ffdc52c054168fce36f5fbb35d3b9475c7fff')

build() {
  meson $pkgname build \
    --prefix /usr
  meson compile -C build
}

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

  install -Dm644 $pkgname/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
}
