blob: bf340cbb23fae60e4cbc0e889f729587c8c2dafc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openal-soft
pkgver=1.17.1
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="4e1cff46cdb3ac147745dea33ad92687 openal-soft-1.17.1.tar.bz2"
sha256sums="087153baab375c23d7aa7e9f3237c0a1d02e336537b485aee56d9ac312baf6f8 openal-soft-1.17.1.tar.bz2"
sha512sums="f0b14e9fdcc22bb18d9c3278392fd94959cd3d85d83ad0472dcac24122fe1f8c818ef8c47197424f6d9789524d0aff64965ce502965f5d6541a772fc8dc3286d openal-soft-1.17.1.tar.bz2"
|