#!/bin/sh # This is a Slackbuild designed to make a Vector Linux package, # The VL Slackbuild is brought to you by # The Headacher (theheadacher{at}gmail[dot]com) CWD=`pwd` if ["$TMP" = ""]; then TMP=/tmp fi PKG=$TMP/package-portaudio NAME=portaudio VERSION=19.`date +%Y%m%d` ARCH=i586 BUILD=1vl58 CFLAGS="-O2 -march=i586 -mtune=i686" if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi #download latest pa_snapshot if pa_snapshot_v19.tar.gz doesn't exist yet if [ ! -f pa_snapshot_v19.tar.gz ]; then echo "pa_snapshot_v19.tar.gz does not exist, downloading" wget http://www.portaudio.com/archives/pa_snapshot_v19.tar.gz fi cd $TMP tar xvzf $CWD/pa_snapshot_v19.tar.gz cd portaudio ./configure --prefix=/usr \ --program-prefix="" \ --program-suffix="" \ --with-alsa \ --with-oss \ --with-jack \ make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a LICENSE.txt README.txt V19-devel-readme.txt $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/install cat > $PKG/install/slack-desc << EOF # HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' on # the right side marks the last column you can put a character in. You must make # exactly 11 lines for the formatting to be correct. It's also customary to # leave one space after the ':'. |-----handy-ruler------------------------------------------------------| portaudio: portaudio (portable audio library) portaudio: portaudio: PortAudio is a portable Real-Time Audio Library, portaudio: provides the same audio API on Linux, Windows, portaudio: as well as MacOS platforms. portaudio: portaudio: Website: http://www.portaudio.com// portaudio: License: Free portaudio: Authors: Phil Burk and Ross Bencina portaudio: portaudio: #---------------------------------------- BUILDDATE: `date` PACKAGER: The Headacher HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: '$CFLAGS' CONFIGURE: `awk "/\.\/configure\ /" $TMP/$NAME/config.log` EOF cd $CWD cp -a portaudio.SlackBuild $PKG/usr/doc/$NAME-$VERSION cd $PKG chown -R root:root . requiredbuilder -v -y -s $CWD $PKG makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tlz if [ "$1" = "--cleanup" ]; then rm -rf $TMP/portaudio rm -rf $PKG fi