wok annotate portaudio/receipt @ rev 24981
Up pce (20220220-991c55d9)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 10:57:53 2022 +0000 (2022-05-08) |
parents | cfdb128f6428 |
children | ebe8a20944ec |
rev | line source |
---|---|
erjo@1464 | 1 # SliTaz package receipt. |
erjo@1464 | 2 |
erjo@1464 | 3 PACKAGE="portaudio" |
Hans-G?nter@21694 | 4 VERSION="190600_20161030" |
erjo@1464 | 5 CATEGORY="system-tools" |
Hans-G?nter@21694 | 6 SHORT_DESC="A portable cross-platform audio API." |
erjo@1464 | 7 MAINTAINER="erjo@slitaz.org" |
Hans-G?nter@21694 | 8 LICENSE="MIT" |
erjo@1464 | 9 WEB_SITE="http://www.portaudio.com/" |
Hans-G?nter@21694 | 10 |
Hans-G?nter@21694 | 11 TARBALL="pa_stable_v${VERSION}.tgz" |
erjo@1464 | 12 WGET_URL="http://www.portaudio.com/archives/$TARBALL" |
erjo@1464 | 13 |
pascal@15375 | 14 DEPENDS="alsa-lib jack-audio-connection-kit" |
pascal@15375 | 15 BUILD_DEPENDS="alsa-lib-dev jack-audio-connection-kit-dev" |
pascal@15375 | 16 |
Hans-G?nter@21694 | 17 HOST_ARCH="i486 arm" |
Hans-G?nter@21694 | 18 |
pascal@24453 | 19 # What is the latest version available today? |
pascal@24453 | 20 current_version() |
pascal@24453 | 21 { |
pascal@24453 | 22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 23 sed "/latest/d;/${PACKAGE}_v[0-9]/!d;/zip/!d;s|.*${PACKAGE}_v\\(.*\\).zip.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 24 } |
pascal@24453 | 25 |
erjo@1464 | 26 # Rules to configure and make the package. |
erjo@1464 | 27 compile_rules() |
erjo@1464 | 28 { |
Hans-G?nter@21694 | 29 ./configure \ |
Hans-G?nter@21694 | 30 --prefix=/usr \ |
Hans-G?nter@21694 | 31 --infodir=/usr/share/info \ |
Hans-G?nter@21694 | 32 --mandir=/usr/share/man \ |
Hans-G?nter@21694 | 33 $CONFIGURE_ARGS && |
erjo@1464 | 34 make && |
pascal@15375 | 35 make DESTDIR=$DESTDIR install |
erjo@1464 | 36 } |
erjo@1464 | 37 |
erjo@1464 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1464 | 39 genpkg_rules() |
erjo@1464 | 40 { |
erjo@1464 | 41 mkdir -p $fs/usr/lib |
pascal@15375 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
erjo@1464 | 43 } |