From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- multilib/chuck/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 multilib/chuck/PKGBUILD (limited to 'multilib/chuck') diff --git a/multilib/chuck/PKGBUILD b/multilib/chuck/PKGBUILD new file mode 100644 index 000000000..06811dea5 --- /dev/null +++ b/multilib/chuck/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 35414 2010-12-20 02:07:32Z heftig $ +# Maintainer: Brad Fanella +# Contributor: SpepS +# Contributor: Jeff Mickey +# Contributor: tardo + +pkgname=chuck +pkgver=1.2.1.3 +pkgrel=5 +pkgdesc="Concurrent, on-the-fly audio programming language." +arch=('i686' 'x86_64') +url="http://chuck.cs.princeton.edu/" +license=('GPL') +depends=('gcc-libs' 'libsndfile' 'alsa-lib') +makedepends=('bison' 'flex') +source=(http://chuck.cs.princeton.edu/release/files/$pkgname-$pkgver.tgz) +md5sums=('ac8459b4067c2491fbdeb61d122a5985') + +if [[ $CARCH == x86_64 ]]; then + depends=('lib32-gcc-libs' 'lib32-libsndfile' 'lib32-alsa-lib') + makedepends+=('gcc-multilib') +fi + +build() { + if [[ $CARCH == x86_64 ]]; then + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH=/usr/lib32/pkgconfig + fi + + cd $srcdir/$pkgname-$pkgver/src + CFLAGS="$CFLAGS -fno-strict-aliasing" + + # This can be linux-alsa linux-jack linux-oss osx win32 + make linux-alsa +} + +package() { + cd $srcdir/$pkgname-$pkgver/src + install -D -m 755 chuck $pkgdir/usr/bin/chuck +} -- cgit v1.2.3-54-g00ecf