wok-next diff portaudio/receipt @ rev 20456
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 03:33:54 2018 +0200 (2018-03-02) |
parents | fb478984fbc8 |
children | 10df65db91ad |
line diff
1.1 --- a/portaudio/receipt Fri Aug 04 16:04:04 2017 +0300 1.2 +++ b/portaudio/receipt Fri Mar 02 03:33:54 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="portaudio" 1.8 VERSION="v19_20110326" 1.9 @@ -6,29 +6,32 @@ 1.10 SHORT_DESC="A portable cross-platform audio API" 1.11 MAINTAINER="erjo@slitaz.org" 1.12 LICENSE="CC-SA" 1.13 -SOURCE="pa_stable" 1.14 -TARBALL="${SOURCE}_${VERSION}.tgz" 1.15 WEB_SITE="http://www.portaudio.com/" 1.16 + 1.17 +TARBALL="pa_stable_$VERSION.tgz" 1.18 WGET_URL="http://www.portaudio.com/archives/$TARBALL" 1.19 -HOST_ARCH="i486 arm" 1.20 1.21 -DEPENDS="alsa-lib jack" 1.22 BUILD_DEPENDS="alsa-lib-dev jack-dev" 1.23 +SPLIT="portaudio-dev" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 - cd $src 1.29 - ./configure --prefix=/usr \ 1.30 +compile_rules() { 1.31 + ./configure \ 1.32 + --prefix=/usr \ 1.33 --infodir=/usr/share/info \ 1.34 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.35 + --mandir=/usr/share/man \ 1.36 + $CONFIGURE_ARGS && 1.37 make && 1.38 make DESTDIR=$DESTDIR install 1.39 } 1.40 1.41 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.42 -genpkg_rules() 1.43 -{ 1.44 - mkdir -p $fs/usr/lib 1.45 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.46 +genpkg_rules() { 1.47 + case $PACKAGE in 1.48 + portaudio) 1.49 + copy @std 1.50 + DEPENDS="alsa-lib jack" 1.51 + ;; 1.52 + *-dev) 1.53 + copy @dev 1.54 + ;; 1.55 + esac 1.56 }