makedepends=(cmake)

description="Compute quality functions of 2 and 3-dimensional regions"
url="https://github.com/sandialabs/verdict"

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

name="verdict"
version="1.4.4"
release=1

source=(https://github.com/sandialabs/verdict/archive/$version/verdict-$version.tar.gz)

build() {

  cmake -B build \
        -S $name-$version \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DVERDICT_ENABLE_TESTING=OFF \
        -DBUILD_SHARED_LIBS=ON

  cmake --build build

  DESTDIR="$PKG" cmake --install build;

  install -Dm644 $name-$version/LICENSE -t "$PKG"/usr/share/licenses/$name
}
