# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=yelp-xsl
pkgver=49.0
pkgrel=1
pkgdesc="Stylesheets for Yelp"
arch=('any')
license=('spdx:GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT')
url="https://gitlab.gnome.org/GNOME/yelp-xsl"
msys2_references=(
  "anitya: 13164"
)
makedepends=(
  "itstool"
  "meson"
  "libxslt"
)
source=(https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
sha256sums=('59d43a8f8fe67b784f14f9a04dd4a7a092a7f4a64a65e71b90fe02a47a50fbec')

build() {
  mkdir -p "build-${CHOST}"
  cd "build-${CHOST}"

  meson setup "${srcdir}/${pkgname}-${pkgver}" . \
    --prefix=/usr \
    --buildtype=release

  meson compile -C .
}

package() {
  cd "build-${CHOST}"
  DESTDIR="${pkgdir}" meson install
}
