wok-6.x view pyaudio/receipt @ rev 24459
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 11:53:30 2022 +0000 (2022-02-16) |
parents | 6156391b4805 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="pyaudio"
4 VERSION="0.2.11"
5 CATEGORY="development"
6 SHORT_DESC="Provides Python bindings for PortAudio."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="unknown"
9 WEB_SITE="https://people.csail.mit.edu/hubert/pyaudio/"
11 SOURCE="PyAudio"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/P/$SOURCE/$TARBALL"
15 DEPENDS="portaudio python"
16 BUILD_DEPENDS="portaudio-dev python-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/new release/!d;s| is.*||;s|[^0-9]*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py build &&
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 }