wok-next diff qjson/receipt @ rev 20212
Up consonance (0.5.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 18:41:56 2017 +0100 (2017-11-04) |
parents | f8007f2c0018 |
children | d5aab818505e |
line diff
1.1 --- a/qjson/receipt Tue May 13 11:45:00 2014 +0000 1.2 +++ b/qjson/receipt Sat Nov 04 18:41:56 2017 +0100 1.3 @@ -1,29 +1,37 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="qjson" 1.8 -VERSION="0.8.1" 1.9 +VERSION="0.9.0" 1.10 CATEGORY="development" 1.11 -SHORT_DESC="QJson is a qt-based library that maps JSON data to QVariant objects" 1.12 +SHORT_DESC="QJson is a Qt-based library that maps JSON data to QVariant objects" 1.13 MAINTAINER="al.bobylev@gmail.com" 1.14 LICENSE="LGPL2.1" 1.15 WEB_SITE="http://qjson.sourceforge.net/" 1.16 -TARBALL="$PACKAGE-$VERSION.zip" 1.17 -WGET_URL="https://github.com/flavio/qjson/archive/$VERSION.zip" 1.18 1.19 -DEPENDS="libQtGui libQtNetwork libQtSql libcrypto" 1.20 -BUILD_DEPENDS="Qt4-dev qmake cmake wget" 1.21 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.22 +WGET_URL="https://github.com/flavio/qjson/archive/$VERSION.tar.gz" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 - mkdir build && cd build 1.28 - cmake -DCMAKE_INSTALL_PREFIX=/usr .. 1.29 - make && make install 1.30 +BUILD_DEPENDS="cmake qt5-dev" 1.31 +SPLIT="qjson-dev" 1.32 + 1.33 +compile_rules() { 1.34 + mkdir build; cd build 1.35 + cmake \ 1.36 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.37 + .. && 1.38 + make && 1.39 + make install 1.40 } 1.41 1.42 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.43 -genpkg_rules() 1.44 -{ 1.45 - mkdir -p $fs/usr/lib 1.46 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.47 +genpkg_rules() { 1.48 + case $PACKAGE in 1.49 + qjson) 1.50 + copy @std 1.51 + DEPENDS="qt5-base" 1.52 + ;; 1.53 + *-dev) 1.54 + copy @dev 1.55 + DEPENDS="qjson qt5-dev" 1.56 + ;; 1.57 + esac 1.58 }