wok-6.x annotate Qt4-qca-ossl/receipt @ rev 25445

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