wok-6.x annotate net6/receipt @ rev 25342
Down python-bcrypt: last version supporting python < 3.6
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 24 17:10:41 2022 +0000 (2022-07-24) |
parents | a37cdf5d9bb4 |
children |
rev | line source |
---|---|
pankso@2362 | 1 # SliTaz package receipt. |
pankso@2362 | 2 |
pankso@2362 | 3 PACKAGE="net6" |
pascal@11521 | 4 VERSION="1.3.14" |
pascal@2584 | 5 CATEGORY="network" |
pankso@2362 | 6 SHORT_DESC="Net6 library (TCP protocol abstraction for C++)." |
pankso@2362 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15068 | 8 LICENSE="LGPL2.1" |
pankso@2362 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15068 | 10 WEB_SITE="http://releases.0x539.de/net6/" |
pascal@15068 | 11 WGET_URL="http://releases.0x539.de/net6/$TARBALL" |
pascal@15068 | 12 |
pascal@5030 | 13 DEPENDS="gnutls libgpg-error libgcrypt libsigc++ zlib gcc-lib-base libtasn1" |
pascal@11521 | 14 BUILD_DEPENDS="$DEPENDS gnutls-dev libgpg-error-dev libgcrypt-dev libsigc++-dev \ |
pascal@20385 | 15 libtasn1-dev pkg-config p11-kit-dev libgnutls" |
pankso@2362 | 16 |
pascal@24453 | 17 # What is the latest version available today? |
pascal@24453 | 18 current_version() |
pascal@24453 | 19 { |
pascal@24453 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 22 } |
pascal@24453 | 23 |
pankso@2362 | 24 # Rules to configure and make the package. |
pankso@2362 | 25 compile_rules() |
pankso@2362 | 26 { |
pascal@23088 | 27 # GnuTLS 3.0 update |
pascal@23088 | 28 sed -e 's|kx_set_priority.*|priority_set_direct(session, "NORMAL:+ANON-ECDH:+ANON-DH", NULL);|' \ |
pascal@23088 | 29 -e '/kx_prio/d' -i src/encrypt.cpp |
pascal@23088 | 30 |
pankso@2362 | 31 ./configure \ |
pankso@2362 | 32 --prefix=/usr \ |
pankso@2362 | 33 --infodir=/usr/share/info \ |
pankso@2362 | 34 --mandir=/usr/share/man \ |
pankso@2362 | 35 $CONFIGURE_ARGS && |
pankso@2362 | 36 make && |
pascal@15068 | 37 make DESTDIR=$DESTDIR install |
pankso@2362 | 38 } |
pankso@2362 | 39 |
pankso@2362 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2362 | 41 genpkg_rules() |
pankso@2362 | 42 { |
pankso@2362 | 43 mkdir -p $fs/usr/lib |
pascal@15068 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@2362 | 45 } |