makedepends=(cmake)

description="UTF-8 with C++ in a Portable Way"
url="https://github.com/nemtrif/utfcpp"

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

name=utf8cpp
version=4.0.6
release=1

source=(https://github.com/nemtrif/utfcpp/archive/v$version/utf8cpp-$version.tar.gz)

build() { 
  cmake -B build -S ${name/8}-${version} -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DUTF8_TESTS=OFF
  make -C build
  make -C build DESTDIR="${PKG}" install
  install -Dm644 ${name/8}-${version}/LICENSE -t "${PKG}"/usr/share/licenses/${name}/
}
