PKGBUILDs/extra/openal/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

2012-06-07 13:01:05 +00:00
# $Id: PKGBUILD 155305 2012-04-01 14:23:52Z heftig $
2012-05-13 23:42:50 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
2012-06-07 13:01:05 +00:00
# Contributor: Jason Chu <jchu@xentac.net>
2012-05-13 23:42:50 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2012-06-07 13:01:05 +00:00
# - fix for unimplemented _FPU_EXTENDED
2012-05-13 23:42:50 +00:00
pkgname=openal
2012-12-08 18:02:50 +00:00
pkgver=1.15
2012-06-07 13:01:05 +00:00
pkgrel=1
2012-05-13 23:42:50 +00:00
pkgdesc="A cross-platform 3D audio library"
arch=(i686 x86_64)
url="http://www.openal.org/"
license=(LGPL)
depends=(glibc)
makedepends=(alsa-lib sdl pkgconfig cmake libpulse)
options=('!libtool')
2012-06-07 13:01:05 +00:00
source=(http://kcat.strangesoft.net/openal-releases/openal-soft-$pkgver.tar.bz2
no-fpuextended.patch)
2012-12-08 18:02:50 +00:00
md5sums=('0eeb0551420b8fec300fe5db6d9a7902'
2012-06-07 13:01:05 +00:00
'de9569536f9f1c2b7b0e90d381c631de')
2012-05-13 23:42:50 +00:00
build() {
2012-06-07 13:01:05 +00:00
cd "${srcdir}/$pkgname-soft-$pkgver"
patch -p1 -i "${srcdir}"/no-fpuextended.patch
cd "${srcdir}/$pkgname-soft-$pkgver/build"
2012-05-13 23:42:50 +00:00
cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release ..
make
}
package() {
2012-06-07 13:01:05 +00:00
cd $pkgname-soft-$pkgver
2012-05-13 23:42:50 +00:00
make -C build DESTDIR="$pkgdir/" install
2012-12-08 18:02:50 +00:00
install -t "$pkgdir/usr/share/openal" env-vars.txt hrtf.txt
2012-05-13 23:42:50 +00:00
}