blob: a6179962a7f0b9ae95451c0f06f69e46ced15ab1 (
plain)
1 # Description: Yet Another JSON Library
2 # URL: http://lloyd.github.com/yajl/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: cmake
5
6 name=yajl
7 version=2.1.0
8 release=2
9 source=(https://github.com/lloyd/$name/archive/$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build \
13 -D CMAKE_BUILD_TYPE=Release \
14 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -Wno-dev
17 cmake --build build
18 DESTDIR=$PKG cmake --install build
19
20 mv $PKG/usr/share/pkgconfig $PKG/usr/lib
21 rm -r $PKG/usr/share
22 }
|