2020-11-28 17:15:02 +00:00
|
|
|
# Description: Yet Another JSON Library
|
|
|
|
# URL: http://lloyd.github.com/yajl/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: cmake
|
|
|
|
|
|
|
|
name=yajl
|
|
|
|
version=2.1.0
|
2020-12-31 14:02:37 +01:00
|
|
|
release=2
|
2022-12-13 11:30:12 +01:00
|
|
|
source=(https://github.com/lloyd/$name/archive/refs/tags/$version/$name-$version.tar.gz)
|
2020-11-28 17:15:02 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cmake -S $name-$version -B build \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-12-31 14:02:37 +01:00
|
|
|
|
|
|
|
mv $PKG/usr/share/pkgconfig $PKG/usr/lib
|
|
|
|
rm -r $PKG/usr/share
|
2020-11-28 17:15:02 +00:00
|
|
|
}
|