updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / snack / PKGBUILD
blob259334a4a57d230a1ad7b56a09d868f4ae783ab5
1 # Mantainer: William Díaz <wdiaz [at] archlinux [dot] us>
3 pkgname=snack
4 pkgver=2.2.10
5 pkgrel=10
6 pkgdesc="The Snack Sound Toolkit (Tcl)"
7 url="http://www.speech.kth.se/snack/"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('tk' 'alsa-lib' 'libxft' 'libxss')
11 source=(http://www.speech.kth.se/snack/dist/${pkgname}${pkgver}.tar.gz configure.patch alsa.patch)
12 md5sums=('98da0dc73599b3a039cba1b7ff169399'
13          'd0e95891bbaa44f555314ca91c9688f6'
14          '3cf709c217aa0c33e12e785db71c5583')
16 build() {
17   cd ${srcdir}/${pkgname}${pkgver}/unix
19   # bug from glib - error from /usr/include/bits/mathcalls.h:310
20   sed -i -e 's|^\(#define roundf(.*\)|//\1|' ../generic/jkFormatMP3.c
22   patch < ../../configure.patch || return 1
23   patch < ../../alsa.patch || return 1
25   ./configure --prefix=/usr \
26               --with-tcl=/usr/lib \
27               --with-tk=/usr/lib \
28               --enable-alsa
29   make || return 1
30   make DESTDIR=${pkgdir} install