wok-current annotate qjson/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents 5ea0ce1cecc0
children
rev   line source
al@16309 1 # SliTaz package receipt.
al@16309 2
al@16309 3 PACKAGE="qjson"
Hans-G?nter@21740 4 VERSION="0.9.0"
al@16309 5 CATEGORY="development"
Hans-G?nter@21740 6 SHORT_DESC="A qt-based library that maps JSON data to QVariant objects."
al@16309 7 MAINTAINER="al.bobylev@gmail.com"
al@16309 8 LICENSE="LGPL2.1"
Hans-G?nter@21740 9 WEB_SITE="https://github.com/flavio/qjson/"
Hans-G?nter@21740 10
al@16309 11 TARBALL="$PACKAGE-$VERSION.zip"
Hans-G?nter@21740 12 WGET_URL="${WEB_SITE}archive/$VERSION.zip"
al@16309 13
al@16309 14 DEPENDS="libQtGui libQtNetwork libQtSql libcrypto"
al@16309 15 BUILD_DEPENDS="Qt4-dev qmake cmake wget"
al@16309 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
al@16309 23 # Rules to configure and make the package.
al@16309 24 compile_rules()
al@16309 25 {
Hans-G?nter@21740 26 mkdir build
Hans-G?nter@21740 27 cd build
Hans-G?nter@21740 28 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
Hans-G?nter@21740 29 make &&
Hans-G?nter@21740 30 make install
al@16309 31 }
al@16309 32
al@16309 33 # Rules to gen a SliTaz package suitable for Tazpkg.
al@16309 34 genpkg_rules()
al@16309 35 {
al@16309 36 mkdir -p $fs/usr/lib
al@16309 37 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@16309 38 }