wok-next diff tcplay/receipt @ rev 20503

Packing...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 16 06:03:21 2018 +0200 (2018-03-16)
parents e6615350078d
children d5aab818505e
line diff
     1.1 --- a/tcplay/receipt	Wed Feb 28 16:28:07 2018 +0200
     1.2 +++ b/tcplay/receipt	Fri Mar 16 06:03:21 2018 +0200
     1.3 @@ -3,45 +3,45 @@
     1.4  PACKAGE="tcplay"
     1.5  VERSION="2.0"
     1.6  CATEGORY="system-tools"
     1.7 -SHORT_DESC="Free TrueCrypt implementation."
     1.8 +SHORT_DESC="Free TrueCrypt implementation"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="BSD"
    1.11 +WEB_SITE="https://github.com/bwalex/tc-play"
    1.12 +
    1.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 -WEB_SITE="https://github.com/bwalex/tc-play"
    1.15  WGET_URL="https://github.com/bwalex/tc-play/archive/v$VERSION.tar.gz"
    1.16  
    1.17 -BUILD_DEPENDS="cmake wget libdevmapper-dev libgcrypt-dev util-linux-uuid-dev \
    1.18 +BUILD_DEPENDS="cmake libdevmapper-dev libgcrypt-dev util-linux-uuid-dev \
    1.19  libdevmapper openssl-dev zlib-dev"
    1.20 -SPLIT="tcplay libtcplay-dev libtcplay"
    1.21 +SPLIT="tcplay libtcplay libtcplay-dev"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	make -f Makefile.classic
    1.27 +compile_rules() {
    1.28 +	make -f Makefile.classic || return 1
    1.29 +
    1.30 +	install -Dm755 $src/tcplay $install/usr/bin/tcplay
    1.31 +	mkdir -p \
    1.32 +		$install/usr/lib/ \
    1.33 +		$install/usr/include/
    1.34 +	cp  $src/libtcplay.so* $install/usr/lib/
    1.35 +	cp  $src/libtcplay.a   $install/usr/lib/
    1.36 +	cp  $src/tcplay*.h     $install/usr/include/
    1.37  }
    1.38  
    1.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 -genpkg_rules()
    1.41 -{
    1.42 +genpkg_rules() {
    1.43  	case $PACKAGE in
    1.44 -	tcplay)
    1.45 -		DEPENDS="libgcrypt libdevmapper openssl util-linux-uuid zlib udev"
    1.46 -		mkdir -p $fs/usr/bin
    1.47 -		cp -a $src/tcplay $fs/usr/bin
    1.48 -		;;
    1.49 -	libtcplay-dev)
    1.50 -		CAT="development|Free TrueCrypt implementation, development files."
    1.51 -		DEPENDS="libgcrypt-dev libdevmapper-dev openssl-dev \
    1.52 +		tcplay)
    1.53 +			copy tcplay
    1.54 +			DEPENDS="libgcrypt libdevmapper openssl util-linux-uuid zlib eudev"
    1.55 +			;;
    1.56 +		libtcplay)
    1.57 +			copy *.so*
    1.58 +			CAT="system-tools|libraries"
    1.59 +			DEPENDS="libgcrypt libdevmapper openssl util-linux-uuid zlib eudev"
    1.60 +			;;
    1.61 +		libtcplay-dev)
    1.62 +			copy @dev
    1.63 +			DEPENDS="libgcrypt-dev libdevmapper-dev openssl-dev \
    1.64  			util-linux-uuid-dev zlib-dev"
    1.65 -		mkdir -p $fs/usr/lib $fs/usr/include
    1.66 -		cp -a $src/libtcplay.a $fs/usr/lib
    1.67 -		cp -a $src/tcplay*.h $fs/usr/include
    1.68 -		;;
    1.69 -	libtcplay)
    1.70 -		CAT="system-tools|Free TrueCrypt implementation."
    1.71 -		DEPENDS="libgcrypt libdevmapper openssl util-linux-uuid zlib udev"
    1.72 -		mkdir -p $fs/usr/lib
    1.73 -		cp -a $src/libtcplay.so* $fs/usr/lib
    1.74 -		;;
    1.75 +			;;
    1.76  	esac
    1.77  }