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