Commit 46f652b7 authored by Jakub Jirutka's avatar Jakub Jirutka

testing/lua-rapidjson: modernize abuild

parent cfee6c8f
......@@ -10,8 +10,7 @@ license="MIT"
makedepends="cmake rapidjson-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/xpol/$pkgname/archive/v$pkgver.tar.gz
disable-c-cxx-flag-march.patch
"
disable-c-cxx-flag-march.patch"
builddir="$srcdir/$pkgname-$pkgver"
_luaversions="5.1 5.2 5.3"
......@@ -21,7 +20,7 @@ for _v in $_luaversions; do
done
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
# Remove bundled rapidjson, use system package.
......@@ -42,9 +41,8 @@ build() {
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DBUILD_SHARED_LIBS=ON \
-DLUA_INCLUDE_DIR="$(pkg-config --variable=includedir lua$lver)" \
-DLUA_RAPIDJSON_VERSION="$pkgver" \
|| return 1
make || return 1
-DLUA_RAPIDJSON_VERSION="$pkgver"
make
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment