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