# Contributor: William Pitcock # Maintainer: pkgname=openal-soft pkgver=1.17.0 pkgrel=0 pkgdesc="software implementation of OpenAL API" url="http://kcat.strangesoft.net/openal.html" arch="all" license="LGPL" depends="" depends_dev="alsa-lib-dev" makedepends="$depends_dev linux-headers cmake" install="" subpackages="$pkgname-dev" source="http://kcat.strangesoft.net/openal-releases/${pkgname}-${pkgver}.tar.bz2" _srcdir="${srcdir}/${pkgname}-${pkgver}" _builddir="${srcdir}/build" prepare() { local i cd "$_srcdir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done mkdir -p "$_builddir" } build() { cd "$_builddir" cmake -DCMAKE_INSTALL_PREFIX="/usr" "$_srcdir" || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="0b7d1e79fd57e6c9827a3bbdc97f19b6 openal-soft-1.17.0.tar.bz2" sha256sums="5e93336de2e7c50f3a01beba51861d6f61c3e4045a896191dc806591e46264d1 openal-soft-1.17.0.tar.bz2" sha512sums="abe45385c29986cf9848502fc3034392bd03cd12ab969a97e82056ba9151a061f2a268a76abe393bc4b4f8cda69ef9511fccb09c997ddb90082a753c9caaef3d openal-soft-1.17.0.tar.bz2"