contrib/yajl/Pkgfile

19 lines
495 B
Plaintext

# Description: Yet Another JSON Library
# URL: http://lloyd.github.com/yajl/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cmake
name=yajl
version=2.1.0
release=1
source=(https://github.com/lloyd/$name/archive/$version/$name-$version.tar.gz)
build() {
[[ -e /usr/bin/ninja ]] && PKGMK_YAJL_OPTIONS=' -GNinja'
cmake -S$name-$version -Bbuild $PKGMK_YAJL_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}