Skip to content
Snippets Groups Projects
Commit 0b5b0f6b authored by Leo's avatar Leo
Browse files

community/qjson: modernize

parent 4f0ab3ea
No related branches found
No related tags found
1 merge request!8308community/*: modernize
...@@ -9,24 +9,21 @@ arch="all" ...@@ -9,24 +9,21 @@ arch="all"
license="LGPL-2.1-or-later" license="LGPL-2.1-or-later"
makedepends="qt5-qtbase-dev cmake" makedepends="qt5-qtbase-dev cmake"
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/flavio/$pkgname/archive/$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/flavio/qjson/archive/$pkgver.tar.gz"
prepare() {
cd "$builddir"
mkdir -p "$builddir"/build
}
build() { build() {
cd "$builddir"/build if [ "$CBUILD" != "$CHOST" ]; then
cmake -DCMAKE_INSTALL_PREFIX=/usr \ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
-DCMAKE_BUILD_TYPE=None \ fi
"$builddir" cmake -B build \
make -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
. $CMAKE_CROSSOPTS
make -C build
} }
package() { package() {
cd "$builddir"/build make -C build DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install
} }
sha512sums="ff0674f32abc6c88f9c535a58931f60baafa355655b043009a2574dadb822f10ec25017b78f2911f897a554a34733d7332c94cf4290dec16a631e22070c15e61 qjson-0.9.0.tar.gz" sha512sums="ff0674f32abc6c88f9c535a58931f60baafa355655b043009a2574dadb822f10ec25017b78f2911f897a554a34733d7332c94cf4290dec16a631e22070c15e61 qjson-0.9.0.tar.gz"
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