lib32/lib32-openal/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

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
pkgver=1.17.1
2013-05-24 13:45:19 +08:00
pkgrel=1
2015-01-08 17:19:29 +08:00
pkgdesc="A cross-platform 3D audio library (32-bit)"
arch=(x86_64)
2011-01-16 02:11:06 +08:00
url="http://www.openal.org/"
2015-01-08 17:19:29 +08:00
license=(LGPL)
depends=(lib32-glibc $_pkgbasename=$pkgver)
makedepends=(lib32-alsa-lib lib32-sdl lib32-libpulse lib32-portaudio pkgconfig cmake gcc-multilib)
source=(http://kcat.strangesoft.net/openal-releases/openal-soft-$pkgver.tar.bz2)
md5sums=('4e1cff46cdb3ac147745dea33ad92687')
2011-01-16 02:11:06 +08:00
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
2015-01-08 17:19:29 +08:00
cd $_pkgbasename-soft-$pkgver/build
cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release -D LIB_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"
}