# HG changeset patch # User Aleksej Bobylev # Date 1534997272 -10800 # Node ID eb69d8917c6205e8402c09caa635cb86718273d2 # Parent 306a4f2580137fa1b21387eaf0446b48a8e48b08 pyaudio -> python-pyaudio diff -r 306a4f258013 -r eb69d8917c62 pyaudio/receipt --- a/pyaudio/receipt Thu Aug 23 06:46:33 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="pyaudio" -VERSION="0.2.9" -CATEGORY="development" -SHORT_DESC="PyAudio provides Python bindings for PortAudio." -MAINTAINER="paul@slitaz.org" -LICENSE="unknown" -WEB_SITE="http://people.csail.mit.edu/hubert/pyaudio/" -REPOLOGY="python:pyaudio" - -SOURCE="PyAudio" -TARBALL="$SOURCE-$VERSION.tar.gz" -WGET_URL="http://people.csail.mit.edu/hubert/pyaudio/packages/$TARBALL" - -DEPENDS="python portaudio" -BUILD_DEPENDS="python-dev portaudio-dev" - -# Rules to configure and make the package. -compile_rules() -{ - python setup.py build - python setup.py install --root=$DESTDIR -} - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - cp -a $install/usr $fs -} diff -r 306a4f258013 -r eb69d8917c62 python-pyaudio/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-pyaudio/receipt Thu Aug 23 07:07:52 2018 +0300 @@ -0,0 +1,22 @@ +# SliTaz package receipt v2. + +PACKAGE="python-pyaudio" +VERSION="latest" +CATEGORY="development" +SHORT_DESC="PyAudio provides Python bindings for PortAudio" +MAINTAINER="paul@slitaz.org" +LICENSE="unknown" +WEB_SITE="https://pypi.org/project/PyAudio/" +REPOLOGY="python:pyaudio" + +BUILD_DEPENDS="python-dev portaudio-dev" + +compile_rules() { + pip install --no-compile --root=$DESTDIR PyAudio +} + +genpkg_rules() { + VERSION=$(sed -n '/^Successfully installed/ s|.*PyAudio-||p' $LOGS/$PACKAGE.log) + copy @std + DEPENDS="python portaudio" +}