# Description: Yet Another JSON Library # URL: https://lloyd.github.io/yajl/ # Maintainer: KRAK3N Team, extra ports at krak3n dot my # Depends on: cmake name=yajl version=2.1.0 release=1 source=(https://github.com/lloyd/${name}/archive/refs/tags/${version}/${name}-${version}.tar.gz fix-build-with-cmake4.patch) build() { cd ${name}-${version} patch -Np1 -i ../fix-build-with-cmake4.patch mkdir -p cmakebuild cd cmakebuild cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=Release \ -DFETCHCONTENT_FULLY_DISCONNECTED=ON \ -DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ -B build .. cmake --build build DESTDIR=$PKG cmake --install build }