summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorUwe Koloska2015-07-07 23:35:34 +0200
committerUwe Koloska2015-07-07 23:35:34 +0200
commit12477a764b35716c7aba8270992b3b4ca284df6d (patch)
tree90bb475a24748f848c4cc109428401a9f5b94af3 /PKGBUILD
downloadaur-snack.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..06403372e03
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Uwe Koloska <kolewu [at] koloro [dot] de>
+# Contributor: William Díaz <wdiaz [at] archlinux [dot] us>
+
+pkgname=snack
+pkgver=2.2.10
+pkgrel=11
+pkgdesc="a sound toolkit for scripting languages (Tcl, Python, Ruby, ...)"
+url="http://www.speech.kth.se/snack/"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('tk' 'alsa-lib' 'libxft' 'libxss')
+source=(http://www.speech.kth.se/snack/dist/${pkgname}${pkgver}.tar.gz
+ configure.patch
+ alsa.patch
+ deprecated-functions.patch)
+md5sums=('98da0dc73599b3a039cba1b7ff169399'
+ '330da66b5e9763933a8d8262af914a9a'
+ '5d92710f4515f70861fd45312c7372bb'
+ '3167282bd079291792337bd7f0ad8997')
+
+build() {
+ cd ${pkgname}${pkgver}
+
+ # bug from glib - error from /usr/include/bits/mathcalls.h:310
+ sed -i -e 's|^\(#define roundf(.*\)|//\1|' generic/jkFormatMP3.c
+
+ patch -p0 -i ../configure.patch
+ patch -p0 -i ../alsa.patch
+ patch -p0 -i ../deprecated-functions.patch
+
+ cd unix
+
+ ./configure --prefix=/usr \
+ --with-tcl=/usr/lib \
+ --with-tk=/usr/lib \
+ --enable-alsa
+ make
+}
+
+package() {
+ cd ${pkgname}${pkgver}/unix
+
+ make DESTDIR=${pkgdir} install
+}