#Packager: Dimitris Tzemos <dijemos~at~gmail~dot~com>

pkgname=alure
pkgver=1.2
pkgrel=1dj
source=("http://kcat.strangesoft.net/alure-releases/$pkgname-$pkgver.tar.bz2")
sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname
url=http://kcat.strangesoft.net/alure.html
docs=('COPYING')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"alure (library to manage tasks with OpenAL)"
"alure is a utility library to help manage common tasks with OpenAL"
"applications. This includes device enumeration and initialization,"
"file loading, and streaming. As of version 1.1, it is X11/MIT"
"licensed, allowing it to be used in open- and closed-source programs,"
"freeware or commercial."
""
"http://kcat.strangesoft.net/alure.html"
)

build() {
	cd $SRC/$pkgname-$pkgver
	
	mkdir -p build
	cd build
	cmake \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DLIB_SUFFIX=${LIBDIRSUFFIX} \
	-DBUILD_STATIC=OFF \
	-DBUILD_SHARED=ON \
	-DFLUIDSYNTH=OFF \
	-DCMAKE_BUILD_TYPE=Release ..
		
	make -j $numjobs || exit 1
	make install DESTDIR=$PKG
	cd ..
}