opt/yajl/Pkgfile

20 lines
492 B
Plaintext
Raw Normal View History

2020-11-28 18:15:02 +01: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
release=1
source=(https://github.com/lloyd/$name/archive/$version/$name-$version.tar.gz)
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
}