lib32/lib32-openal/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

2011-01-16 02:11:06 +08:00
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
2012-08-18 22:21:06 +08:00
# NOTE: it must be built without ffmpeg installed, at least until a lib32 package for ffmpeg is provided.
2011-01-16 02:11:06 +08:00
_pkgbasename=openal
pkgname=lib32-$_pkgbasename
2012-08-18 22:21:06 +08:00
pkgver=1.14
pkgrel=2
2011-01-16 02:11:06 +08:00
pkgdesc="OpenAL audio library for use with opengl (32-bit)"
arch=('x86_64')
url="http://www.openal.org/"
license=('LGPL')
depends=('lib32-glibc' $_pkgbasename=$pkgver)
2011-01-16 02:11:06 +08:00
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)
2012-08-18 22:21:06 +08:00
md5sums=('3d8b86c21a2f87a2a5e60f78f3b3f03d')
2011-01-16 02:11:06 +08:00
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd ${srcdir}/${_pkgbasename}-soft-${pkgver}/build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLIB_SUFFIX=32 \
..
2011-01-16 02:11:06 +08:00
make
}
package() {
cd ${srcdir}/${_pkgbasename}-soft-${pkgver}/build
make DESTDIR=${pkgdir}/ install
# Remove files already provided by the 64-bit package.
2011-01-16 02:11:06 +08:00
rm -rf "${pkgdir}"/usr/{include,share,bin}
# Licenses.
2011-01-16 02:11:06 +08:00
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}