pkgname=simde
pkgver=0.8.2
pkgdesc="Implementations of SIMD instruction sets"
arch=(any)
homepage="https://github.com/simd-everywhere/simde"
license=(MIT)
makedepends=(meson)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("${homepage}/archive/v${pkgver}/${sources[0]}")
md5sums=("14323994d1f791e985c59ddf0b559e35")

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

src_build() {
  leaf_clear_flags
  meson setup build --prefix=/usr
  meson compile -C build
}

src_check() {
  meson test -C build --print-errorlogs
}

src_install() {
  meson install -C build --destdir "$pkgdir"
  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
  install -vDm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
}

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