wok-6.x annotate python-pyajam/receipt @ rev 24998
Up rp-pppoe (3.15)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 16 10:11:22 2022 +0000 (2022-05-16) |
parents | 1a39a3d55d0e |
children | 00a75945593a |
rev | line source |
---|---|
pascal@20295 | 1 # SliTaz package receipt. |
pascal@20295 | 2 |
pascal@20295 | 3 PACKAGE="python-pyajam" |
pascal@24890 | 4 GITHASH="e8367de52f52b7381afaad1f7cc9c7e4df1b3acb" |
pascal@24890 | 5 VERSION="0.2" |
pascal@20295 | 6 CATEGORY="development" |
pascal@20295 | 7 SHORT_DESC="Pythonic interface of Asterisk AJAM protocol" |
pascal@20295 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20295 | 9 LICENSE="GPL3" |
pascal@24890 | 10 #WEB_SITE="https://github.com/litnimax/PyAjam" |
pascal@24890 | 11 WEB_SITE="https://github.com/gbour/PyAjam" |
pascal@20295 | 12 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@20295 | 13 WGET_URL="$WEB_SITE/archive/$GITHASH.zip" |
pascal@20295 | 14 |
pascal@20295 | 15 DEPENDS="python" |
pascal@21582 | 16 BUILD_DEPENDS="python-setuptools" |
pascal@20295 | 17 |
pascal@24476 | 18 # What is the latest version available today? |
pascal@24476 | 19 current_version() |
pascal@24476 | 20 { |
pascal@24890 | 21 wget -O - https://raw.githubusercontent.com/gbour/PyAjam/master/CHANGES 2>/dev/null | \ |
pascal@24699 | 22 sed '/^[0-9]/!d;s| .*||' | sort -Vr | sed q |
pascal@24476 | 23 } |
pascal@24476 | 24 |
pascal@20295 | 25 # Rules to configure and make the package. |
pascal@20295 | 26 compile_rules() |
pascal@20295 | 27 { |
pascal@20295 | 28 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@20295 | 29 } |
pascal@20295 | 30 |
pascal@20295 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20295 | 32 genpkg_rules() |
pascal@20295 | 33 { |
pascal@20295 | 34 cp -a $install/usr $fs/ |
pascal@20295 | 35 } |