makedepends=(cmake)

description="A library to ease explicit vectorization of C++ code"
url="https://github.com/VcDevel/Vc"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=vc
version=1.4.5

PKGMK_KEEP_SOURCES=no
source=(https://github.com/VcDevel/Vc/archive/refs/tags/$version.tar.gz)

build() {
  mkdir -p build && cd build

  cmake ../Vc-$version \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DTARGET_ARCHITECTURE=generic

  make
  make DESTDIR=$PKG install
}
