# Maintainer: Developer <dev@opalos.org>
# Maintainer: Developer <dev@opalos.org>

pkgname=wayland-utils
pkgver=%version%
pkgrel=%release%
pkgdesc='Wayland tools to display information about current compositor'
url='https://gitlab.freedesktop.org/wayland/wayland-utils'
arch=(x86_64)
license=(MIT)
depends=(wayland libdrm)
makedepends=(meson wayland-protocols)
source=(https://gitlab.freedesktop.org/wayland/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('2ccc0d31c7327f3739322d643e13c1346f2485ae860e837cf58524346d89566c')

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

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

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