wok-current annotate ansible/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 5e0488ebbbb5 |
children | 3abeffdae80b |
rev | line source |
---|---|
pascal@16233 | 1 # SliTaz package receipt. |
pascal@16233 | 2 |
pascal@16233 | 3 PACKAGE="ansible" |
pascal@23875 | 4 VERSION="2.9.10" |
pascal@16233 | 5 CATEGORY="network" |
hackdorte@20007 | 6 SHORT_DESC="A radically simple configuration-management engine." |
pascal@16233 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16233 | 8 LICENSE="GPL3" |
Hans-G?nter@22481 | 9 WEB_SITE="https://www.ansible.com/" |
Hans-G?nter@22481 | 10 |
pascal@16233 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22481 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz" |
pascal@16233 | 13 |
pascal@16233 | 14 DEPENDS="python python-jinja2 python-pyyaml ssh" |
Hans-G?nter@22481 | 15 BUILD_DEPENDS="python python-setuptools" |
Hans-G?nter@22481 | 16 |
Hans-G?nter@22481 | 17 CONFIG_FILES="/etc/ansible" |
pascal@16233 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@16233 | 25 # Rules to configure and make the package. |
pascal@16233 | 26 compile_rules() |
pascal@16233 | 27 { |
Hans-G?nter@22481 | 28 python setup.py build && |
pascal@16233 | 29 python setup.py install --root=$DESTDIR |
pascal@16233 | 30 } |
pascal@16233 | 31 |
pascal@16233 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16233 | 33 genpkg_rules() |
pascal@16233 | 34 { |
pascal@16233 | 35 mkdir -p $fs/etc/ansible |
pascal@16233 | 36 cp -a $install/* $fs |
pascal@16233 | 37 } |