wok annotate tls/receipt @ rev 25800

Up xcursor-aero (20240910)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 28 13:19:05 2024 +0000 (3 days ago)
parents 7dd01dedad38
children
rev   line source
erjo@1863 1 # SliTaz package receipt.
erjo@1863 2
erjo@1863 3 PACKAGE="tls"
slaxemulator@13121 4 VERSION="1.6"
taziden@1986 5 CATEGORY="network"
erjo@1863 6 SHORT_DESC="OpenSSL Tcl extension."
erjo@1863 7 MAINTAINER="erjo@slitaz.org"
pascal@15601 8 LICENSE="MIT"
erjo@1863 9 TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
pascal@25460 10 WEB_SITE="https://tls.sourceforge.net/"
slaxemulator@13121 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
erjo@1863 12
pascal@15601 13 DEPENDS="openssl tcl"
pascal@15601 14 BUILD_DEPENDS="openssl-dev tcl-dev"
pascal@15601 15
pascal@24340 16 # What is the latest version available today?
pascal@24340 17 current_version()
pascal@24340 18 {
pascal@24340 19 wget -O - https://sourceforge.net/projects/tls/files/tls/ 2>/dev/null | \
pascal@25607 20 sed '/scope="row/!d;/unstable/d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 21 sed '/scope="row/!d;s|.*/tls/||;s|/.*||;q'
pascal@24340 22 }
pascal@24340 23
erjo@1863 24 # Rules to configure and make the package.
erjo@1863 25 compile_rules()
erjo@1863 26 {
erjo@1863 27 cd $src
erjo@1863 28 ./configure --prefix=/usr \
erjo@1863 29 --with-ssl-dir=/usr \
erjo@1863 30 --disable-symboles && \
erjo@1863 31 make
erjo@1863 32 }
erjo@1863 33
erjo@1863 34 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1863 35 genpkg_rules()
erjo@1863 36 {
slaxemulator@13121 37 mkdir -p $fs/usr/lib/tls1.6
slaxemulator@13121 38 cp -a $src/libtls1.6.so $fs/usr/lib/tls1.6
slaxemulator@13121 39 cp -a $src/pkgIndex.tcl $fs/usr/lib/tls1.6
slaxemulator@13121 40 cp -a $src/tls.tcl $fs/usr/lib/tls1.6
erjo@1863 41
slaxemulator@13121 42 sed -i 's/dir ../dir/' $fs/usr/lib/tls1.6/pkgIndex.tcl
erjo@1863 43 }