Skip to content
Snippets Groups Projects
Commit 417fc6b3 authored by alice's avatar alice
Browse files

community/lua-rapidjson: build with samurai

parent a2daa4d3
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ pkgdesc="A JSON module for Lua based on the very fast RapidJSON library" ...@@ -8,7 +8,7 @@ pkgdesc="A JSON module for Lua based on the very fast RapidJSON library"
url="https://github.com/xpol/lua-rapidjson" url="https://github.com/xpol/lua-rapidjson"
arch="all" arch="all"
license="MIT" license="MIT"
makedepends="cmake rapidjson-dev" makedepends="cmake rapidjson-dev samurai"
checkdepends="lua-busted" checkdepends="lua-busted"
source="$pkgname-$pkgver.tar.gz::https://github.com/xpol/lua-rapidjson/archive/v$pkgver.tar.gz source="$pkgname-$pkgver.tar.gz::https://github.com/xpol/lua-rapidjson/archive/v$pkgver.tar.gz
disable-c-cxx-flag-march.patch disable-c-cxx-flag-march.patch
...@@ -40,7 +40,7 @@ build() { ...@@ -40,7 +40,7 @@ build() {
cd "$builddir"/build-$lver cd "$builddir"/build-$lver
msg "Building against Lua $lver..." msg "Building against Lua $lver..."
cmake .. \ cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
...@@ -49,7 +49,7 @@ build() { ...@@ -49,7 +49,7 @@ build() {
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DLUA_INCLUDE_DIR="$(pkg-config --variable=includedir lua$lver)" \ -DLUA_INCLUDE_DIR="$(pkg-config --variable=includedir lua$lver)" \
-DLUA_RAPIDJSON_VERSION="$pkgver" -DLUA_RAPIDJSON_VERSION="$pkgver"
make cmake --build .
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment