wok-6.x view tls/receipt @ rev 24788

grep: add post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 09:31:32 2022 +0000 (2022-03-21)
parents 23c3aed67cd9
children 7dd01dedad38
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="http://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 }