wok view Qt4-qca-ossl/receipt @ rev 24525

Up libav (0.6.6 -> 12.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 22 16:15:28 2022 +0000 (2022-02-22)
parents c49ffc024a6c
children 505d1daeed6c
line source
1 # SliTaz package receipt.
3 NAME="qca-ossl"
4 PACKAGE="Qt4-$NAME"
5 MAJORVERSION="2.0"
6 VERSION="2.0.0-beta3"
7 CATEGORY="development"
8 SHORT_DESC="OpenSSL plug-in for the Qt Cryptographic Architecture (QCA)."
9 MAINTAINER="ben@seawolfsanctuary.com"
10 LICENSE="LGPL2.1"
11 TARBALL="$NAME-$VERSION.tar.bz2"
12 WEB_SITE="https://github.com/highfidelity/qca/tree/master/plugins/qca-ossl"
13 WGET_URL="http://delta.affinix.com/download/qca/$MAJORVERSION/plugins/$TARBALL"
15 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
16 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
17 libQtOpenGL libQtSql libQtWebkit qca openssl"
18 BUILD_DEPENDS="qmake xorg-libX11-dev dbus-dev openssl-dev Qt4-dev qca-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://raw.githubusercontent.com/highfidelity/qca/master/README 2>/dev/null | \
24 sed '/ version /!d;s|.*ersion ||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd $src
32 patch -u <<EOP
33 --- qca-ossl.cpp
34 +++ qca-ossl.cpp
35 @@ -330,1 +330,1 @@
36 - X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash");
37 + X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char *)"hash");
38 EOP
39 status
40 patch -u <<EOP
41 --- qca-ossl.cpp
42 +++ qca-ossl.cpp
43 @@ -6597,9 +6597,11 @@
44 #ifdef SHA512_DIGEST_LENGTH
45 list += "sha512";
46 #endif
47 + /*
48 #ifdef OBJ_whirlpool
49 list += "whirlpool";
50 #endif
51 + */
52 return list;
53 }
54 EOP
55 status
56 patch -u <<EOP
57 --- qca-ossl.cpp
58 +++ qca-ossl.cpp
59 @@ -6812,10 +6812,12 @@
60 else if ( type == "sha512" )
61 return new opensslHashContext( EVP_sha512(), this, type);
62 #endif
63 +/*
64 #ifdef OBJ_whirlpool
65 else if ( type == "whirlpool" )
66 return new opensslHashContext( EVP_whirlpool(), this, type);
67 #endif
68 +*/
69 else if ( type == "pbkdf1(sha1)" )
70 return new opensslPbkdf1Context( EVP_sha1(), this, type );
71 else if ( type == "pbkdf1(md2)" )
72 EOP
73 status
75 chmod +x configure
76 ./configure \
77 --qtdir=/usr/lib/qt && \
78 make $MAKEFLAGS &&
79 make DESTDIR=$DESTDIR install 2>&1 | grep -v libqca-ossl.so.debug
80 }
82 # Rules to gen a SliTaz package suitable for Tazpkg.
83 genpkg_rules()
84 {
85 mkdir -p $fs/usr/lib/qt/plugins/crypto
86 cp -a $src/lib/* $fs/usr/lib/qt/plugins/crypto/
88 # Copy .desktop file:
89 # cp -a $stuff/* $fs/usr
90 }