# vim: set syn=sh et ai sw=2 st=2 ts=2 tw=0: #Packager: JRD pkgname=snack pkgver=2.2.10 pkgrel=1cp #arch is usually one of x86_64/i486/i686/noarch source=(http://www.speech.kth.se/snack/dist/${pkgname}${pkgver}.tar.gz) sourcetemplate=http://enialis.net/~jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.speech.kth.se/snack/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (Sound toolkit for scripts)" "The Snack Sound Toolkit is designed to be used with a scripting" "language such as Tcl/Tk or Python." "Using Snack you can create powerful multi-platform audio applications" "with just a few lines of code." "Snack has commands for basic sound handling, such as playback," "recording, file and socket I/O." "Snack also provides primitives for sound visualization, e.g. waveforms" "and spectrograms. Snack has also successfully been applied to other" "one-dimensional signals." ) build() { cd $startdir/src/${pkgname}${pkgver}/unix || return 1 # already defined by glibc sed -i 's:#define roundf.*:/* \0 */:' ../generic/jkFormatMP3.c ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux --enable-alsa --with-tcl=/usr/lib${LIBDIRSUFFIX} --with-tk=/usr/lib${LIBDIRSUFFIX} || return 1 make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg || return 1 }