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/lib32-openal/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 multilib/lib32-openal/PKGBUILD (limited to 'multilib/lib32-openal/PKGBUILD') diff --git a/multilib/lib32-openal/PKGBUILD b/multilib/lib32-openal/PKGBUILD new file mode 100644 index 000000000..6201cdf24 --- /dev/null +++ b/multilib/lib32-openal/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 42890 2011-03-22 08:03:47Z heftig $ +# Maintainer: Jan "heftig" Steffens +# Contributor: Allan McRae +# Contributor: Jason Chu + +_pkgbasename=openal +pkgname=lib32-$_pkgbasename +pkgver=1.13 +pkgrel=2 +pkgdesc="OpenAL audio library for use with opengl (32-bit)" +arch=('x86_64') +url="http://www.openal.org/" +license=('LGPL') +depends=('lib32-glibc' $_pkgbasename) +makedepends=('lib32-alsa-lib' 'lib32-sdl' 'lib32-libpulse' 'pkgconfig' 'cmake' gcc-multilib) +options=('!libtool') +source=(http://kcat.strangesoft.net/openal-releases/openal-soft-${pkgver}.tar.bz2) +md5sums=('58b7d2809790c70681b825644c5f3614') + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd ${srcdir}/${_pkgbasename}-soft-${pkgver}/build + cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release -D LIB_SUFFIX=32 .. + make +} + +package() { + cd ${srcdir}/${_pkgbasename}-soft-${pkgver}/build + make DESTDIR=${pkgdir}/ install + + rm -rf "${pkgdir}"/usr/{include,share,bin} +} -- cgit v1.2.3-54-g00ecf