# Description: library for fast image processing
# URL: https://github.com/strukturag/libheif/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libde265

name=libheif
version=1.12.0
release=1
source=(https://github.com/strukturag/$name/releases/download/v$version/$name-$version.tar.gz)

build() {
    mkdir build && cd build
    cmake -DCMAKE_INSTALL_PREFIX="/usr/" -DCMAKE_BUILD_TYPE=Release ../$name-$version
    cmake --build .
    make DESTDIR=$PKG install
}