pkgname=hyprland-protocols
pkgver=0.6.4
pkgdesc='Wayland protocol extensions for Hyprland'
arch=(x86_64 aarch64)
homepage="https://github.com/hyprwm/$pkgname"
license=(BSD-3-Clause)
makedepends=(meson)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/hyprwm/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=("6550272ae760ffce75cedb9f32a9d778")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  local meson_args=(
    --prefix=/usr
    --buildtype=release
    --wrap-mode=nodownload
  )
  meson setup build "${meson_args[@]}"
  meson compile -C build
}

src_install() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

# vim:ft=sh syn=sh et sw=2:
