wok-next annotate net6/receipt @ rev 20076
Up gf2x (1.2), net6: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 25 09:40:19 2017 +0200 (2017-10-25) |
parents | 205d192370e5 |
children | d43bf7aae921 |
rev | line source |
---|---|
pascal@20076 | 1 # SliTaz package receipt v2. |
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@11521 | 13 BUILD_DEPENDS="$DEPENDS gnutls-dev libgpg-error-dev libgcrypt-dev libsigc++-dev \ |
pascal@11521 | 14 libtasn1-dev pkg-config p11-kit-dev" |
pascal@20076 | 15 SPLIT="net6-dev" |
pankso@2362 | 16 |
pankso@2362 | 17 # Rules to configure and make the package. |
pankso@2362 | 18 compile_rules() |
pankso@2362 | 19 { |
pascal@20076 | 20 sed -i '/int kx_prio/d;s|kx_set_priority(session, kx_prio|priority_set_direct(session, "NORMAL:+ANON-DH", NULL|' src/encrypt.cpp |
pankso@2362 | 21 ./configure \ |
pankso@2362 | 22 --prefix=/usr \ |
pankso@2362 | 23 --infodir=/usr/share/info \ |
pankso@2362 | 24 --mandir=/usr/share/man \ |
pankso@2362 | 25 $CONFIGURE_ARGS && |
pankso@2362 | 26 make && |
pascal@15068 | 27 make DESTDIR=$DESTDIR install |
pankso@2362 | 28 } |
pankso@2362 | 29 |
pankso@2362 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2362 | 31 genpkg_rules() |
pankso@2362 | 32 { |
pascal@20076 | 33 case $PACKAGE in |
pascal@20076 | 34 net6) |
pascal@20076 | 35 DEPENDS="gnutls libgpg-error libgcrypt libsigc++ zlib \ |
pascal@20076 | 36 gcc-lib-base libtasn1" |
pascal@20076 | 37 mkdir -p $fs/usr/lib |
pascal@20076 | 38 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@20076 | 39 ;; |
pascal@20076 | 40 net6-dev) |
pascal@20076 | 41 CAT="development|net6 library devel files." |
pascal@20076 | 42 DEPENDS="pkg-config" |
pascal@20076 | 43 mkdir -p $fs/usr/lib |
pascal@20076 | 44 cp -a $install/usr/lib/*.*a $fs/usr/lib |
pascal@20076 | 45 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
pascal@20076 | 46 cp -a $install/usr/include $fs/usr |
pascal@20076 | 47 ;; |
pascal@20076 | 48 esac |
pankso@2362 | 49 } |