# Maintainer:
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: PedsXing <pedsxing at gmx dot net>

pkgname=vc
pkgver=1.4.2
pkgrel=1
pkgdesc='A library to ease explicit vectorization of C++ code'
url='https://github.com/VcDevel/Vc'
arch=(x86_64)
license=(LGPL3)
makedepends=(cmake)
source=(https://github.com/VcDevel/Vc/releases/download/$pkgver/Vc-$pkgver.tar.gz)
sha256sums=('50d3f151e40b0718666935aa71d299d6370fafa67411f0a9e249fbce3e6e3952')

build() {
  cmake -B build -S Vc-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DTARGET_ARCHITECTURE=generic
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
