#Packager: Maximus (maximuus[at]gmail[dot]com)

pkgname=openal-soft
pkgver=1.12.854
pkgrel=1mb
source=(http://kcat.strangesoft.net/openal-releases/$pkgname-$pkgver.tar.bz2)
sourcetemplate=http://people.salixos.org/maximus/$pkgname/$pkgver/
docs=("readme" "copying")
url=http://kcat.strangesoft.net/openal.html

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"openal-soft (a cross-platform 3D audio API)"
"OpenAL is a cross-platform 3D audio API appropriate for use with"
"gaming applications and many other types of audio applications."
)


build() {
	
	cd $startdir/src/$pkgname-$pkgver
	
	cmake . \
	-DLIB_INSTALL_DIR=lib${LIBDIRSUFFIX} \
	-DCMAKE_INSTALL_PREFIX=/usr

	make || return 1
	make install DESTDIR=$startdir/pkg

}