wok-next diff python-blessings/receipt @ rev 20732
Some python-* packaged using pip: actualize $VERSION in genpkg_rules()
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 17:01:41 2018 +0300 (2018-05-29) |
parents | 8cad5edc1a45 |
children | 9b3461bf373c |
line diff
1.1 --- a/python-blessings/receipt Sat Jun 10 21:12:27 2017 +0300 1.2 +++ b/python-blessings/receipt Tue May 29 17:01:41 2018 +0300 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="python-blessings" 1.7 -VERSION="1.6" 1.8 +VERSION="latest" 1.9 CATEGORY="development" 1.10 SHORT_DESC="A thin, practical wrapper around terminal coloring, styling, and positioning" 1.11 MAINTAINER="al.bobylev@gmail.com" 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 blessings 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|.*blessings-||p' $LOGS/$PACKAGE.log) 1.28 copy @std 1.29 DEPENDS="python" 1.30 }