wok-next diff tls/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | 0c247ee1a841 |
children | d5aab818505e |
line diff
1.1 --- a/tls/receipt Fri Mar 24 12:53:44 2017 +0200 1.2 +++ b/tls/receipt Tue Jun 05 17:27:09 2018 +0300 1.3 @@ -1,35 +1,38 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="tls" 1.8 -VERSION="1.6" 1.9 +VERSION="1.6.7" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="OpenSSL Tcl extension." 1.12 +SHORT_DESC="OpenSSL Tcl extension" 1.13 MAINTAINER="erjo@slitaz.org" 1.14 LICENSE="MIT" 1.15 -TARBALL="${PACKAGE}${VERSION}-src.tar.gz" 1.16 WEB_SITE="http://tls.sourceforge.net/" 1.17 + 1.18 +TARBALL="$PACKAGE$VERSION-src.tar.gz" 1.19 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.20 1.21 -DEPENDS="openssl tcl" 1.22 -BUILD_DEPENDS="openssl-dev tcl-dev" 1.23 +BUILD_DEPENDS="openssl10-dev tcl-dev" 1.24 +SPLIT="tls-dev" 1.25 1.26 -# Rules to configure and make the package. 1.27 -compile_rules() 1.28 -{ 1.29 +compile_rules() { 1.30 + sed -i 's|/include$|/include/openssl-1.0|' ./configure 1.31 + 1.32 + CPPFLAGS="$CPPFLAGS -I/usr/include/openssl-1.0" \ 1.33 ./configure \ 1.34 - --prefix=/usr \ 1.35 - --with-ssl-dir=/usr \ 1.36 - --disable-symboles && 1.37 - make 1.38 + --disable-symboles \ 1.39 + $CONFIGURE_ARGS && 1.40 + make && 1.41 + make DESTDIR=$DESTDIR install 1.42 } 1.43 1.44 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.45 -genpkg_rules() 1.46 -{ 1.47 - mkdir -p $fs/usr/lib/tls1.6 1.48 - cp -a $src/libtls1.6.so $fs/usr/lib/tls1.6 1.49 - cp -a $src/pkgIndex.tcl $fs/usr/lib/tls1.6 1.50 - cp -a $src/tls.tcl $fs/usr/lib/tls1.6 1.51 - 1.52 - sed -i 's/dir ../dir/' $fs/usr/lib/tls1.6/pkgIndex.tcl 1.53 +genpkg_rules() { 1.54 + case $PACKAGE in 1.55 + tls) 1.56 + copy @std 1.57 + DEPENDS="openssl10 tcl" 1.58 + ;; 1.59 + *-dev) 1.60 + copy @dev 1.61 + ;; 1.62 + esac 1.63 }