wok-6.x annotate qca/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | bb2cea00c7d5 |
children | 505d1daeed6c |
rev | line source |
---|---|
pankso@9327 | 1 # SliTaz package receipt. |
pankso@9327 | 2 |
pankso@9327 | 3 PACKAGE="qca" |
pankso@9327 | 4 VERSION="2.0.3" |
pankso@9327 | 5 CATEGORY="system-tools" |
pankso@9327 | 6 SHORT_DESC="QCA aims to provide a straightforward and cross-platform crypto API" |
pankso@9327 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
pankso@9327 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@23880 | 10 WEB_SITE="https://userbase.kde.org/QCA" |
pankso@9327 | 11 WGET_URL="http://delta.affinix.com/download/qca/${VERSION%.*}/$TARBALL" |
pankso@9327 | 12 |
psychomaniak@17180 | 13 DEPENDS="libQtCore" |
pascal@14996 | 14 BUILD_DEPENDS="Qt4-dev qmake" |
pascal@14996 | 15 |
pascal@24535 | 16 # What is the latest version available today? |
pascal@24535 | 17 current_version() |
pascal@24535 | 18 { |
pascal@24535 | 19 wget -O - https://raw.githubusercontent.com/highfidelity/qca/master/README 2>/dev/null | \ |
pascal@24535 | 20 sed '/^ New/!d;s|.*in ||;q' |
pascal@24535 | 21 } |
pascal@24535 | 22 |
pankso@9327 | 23 # Rules to configure and make the package. |
pankso@9327 | 24 compile_rules() |
pankso@9327 | 25 { |
pankso@9327 | 26 ./configure \ |
pankso@9327 | 27 --prefix=/usr \ |
pankso@9327 | 28 --certstore-path=/etc/ssl/certs/ca-certificates.crt \ |
pankso@9327 | 29 --disable-tests \ |
pankso@9327 | 30 --no-separate-debug-info \ |
pankso@9327 | 31 --release && |
pankso@9327 | 32 make && make INSTALL_ROOT=$WOK/$PACKAGE/install install |
pankso@9327 | 33 } |
pankso@9327 | 34 |
pankso@9327 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9327 | 36 genpkg_rules() |
pankso@9327 | 37 { |
pankso@9327 | 38 mkdir -p $fs/usr/lib |
pascal@14996 | 39 cp -a $install/usr/bin $fs/usr |
pascal@14996 | 40 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@9327 | 41 } |