wok-next diff python-asterisk/receipt @ rev 20738

Up scons (3.0.1); add scons2 (2.5.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 21:13:51 2018 +0300 (2018-05-29)
parents 8cad5edc1a45
children 4e6503d7a19f
line diff
     1.1 --- a/python-asterisk/receipt	Sat Jun 10 21:12:27 2017 +0300
     1.2 +++ b/python-asterisk/receipt	Tue May 29 21:13:51 2018 +0300
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="python-asterisk"
     1.7 -VERSION="0.5.14"
     1.8 +VERSION="latest"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Python bindings for the Asterisk Manager API"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -10,15 +10,12 @@
    1.13  
    1.14  BUILD_DEPENDS="python"
    1.15  
    1.16 -# Rules to configure and make the package.
    1.17 -compile_rules()
    1.18 -{
    1.19 +compile_rules() {
    1.20  	pip install --no-compile --root=$DESTDIR py-Asterisk
    1.21  }
    1.22  
    1.23 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.24 -genpkg_rules()
    1.25 -{
    1.26 +genpkg_rules() {
    1.27 +	VERSION=$(sed -n '/^Successfully installed/ s|.*py-Asterisk-||p' $LOGS/$PACKAGE.log)
    1.28  	copy @std
    1.29  	DEPENDS="python"
    1.30  }