contrib/yajl/Pkgfile

22 lines
604 B
Plaintext
Raw Normal View History

2020-06-06 23:43:11 +02:00
# 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() {
2020-11-08 13:48:40 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_YAJL+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_YAJL \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 01:08:51 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-03 21:58:38 +01:00
-Wno-dev
2020-06-07 00:31:25 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2020-06-06 23:43:11 +02:00
}