wok-current annotate python-pyalsaaudio/receipt @ rev 25586
Fix linux build with gcc > 6 again
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 29 12:23:26 2023 +0000 (19 months ago) |
parents | 076f424196b2 |
children |
rev | line source |
---|---|
pankso@4419 | 1 # SliTaz package receipt. |
pankso@4419 | 2 |
pankso@4419 | 3 PACKAGE="python-pyalsaaudio" |
Hans-G?nter@25223 | 4 VERSION="0.9.0" |
pankso@4419 | 5 CATEGORY="multimedia" |
Hans-G?nter@25223 | 6 TAGS="audio python" |
pankso@4419 | 7 SHORT_DESC="ALSA wrapper for Python." |
pankso@4419 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15378 | 9 LICENSE="PSL" |
Hans-G?nter@23534 | 10 WEB_SITE="https://pypi.org/project/pyalsaaudio/" |
Hans-G?nter@25223 | 11 REPOLOGY="python:pyalsaaudio" |
Hans-G?nter@23534 | 12 |
pankso@4419 | 13 SOURCE="pyalsaaudio" |
pankso@4419 | 14 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25223 | 15 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15378 | 16 |
Hans-G?nter@25223 | 17 DEPENDS="alsa-lib gcc83-lib-base python" |
Hans-G?nter@25223 | 18 BUILD_DEPENDS="alsa-lib-dev gcc83 python python-dev python-setuptools" |
pankso@4419 | 19 |
pascal@24383 | 20 # What is the latest version available today? |
pascal@24288 | 21 current_version() |
pascal@24288 | 22 { |
pascal@24383 | 23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 24 } |
pascal@24288 | 25 |
pankso@4419 | 26 # Rules to configure and make the package. |
pankso@4419 | 27 compile_rules() |
pankso@4419 | 28 { |
Hans-G?nter@25223 | 29 export CC=gcc-83 |
Hans-G?nter@25223 | 30 |
pascal@15378 | 31 python setup.py install --root=$DESTDIR |
pankso@4419 | 32 } |
pankso@4419 | 33 |
pankso@4419 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4419 | 35 genpkg_rules() |
pankso@4419 | 36 { |
Hans-G?nter@23534 | 37 cp -a $install/usr $fs |
pankso@4419 | 38 } |