blob: 528154b1b5f4e595aebd04c7ec48f8b47180f1c1 (
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
46
47
|
# Maintainer: Rafał Kozdrój <kozeid2@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Jason Chu <jchu@xentac.net>
pkgname=lib32-openal-git
pkgver=1.21.0.r11.g7e767702
pkgrel=1
pkgdesc="Cross-platform 3D audio library, software implementation (32-bit)"
arch=(x86_64)
url="https://github.com/kcat/openal-soft"
license=(LGPL)
depends=(lib32-gcc-libs openal)
makedepends=(lib32-alsa-lib lib32-libpulse lib32-fluidsynth lib32-portaudio
lib32-jack git cmake gcc-multilib)
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/kcat/openal-soft")
md5sums=('SKIP')
pkgver() {
cd openal-soft
git describe --long --tags | sed 's/^openal-soft-//;s/-/.r/;s/-/./g'
}
build() {
export CC="gcc -m32 -mstackrealign"
export CXX="g++ -m32 -mstackrealign"
export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
cmake -S openal-soft -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DALSOFT_UTILS=0 \
-DALSOFT_NO_CONFIG_UTIL=1 \
-DALSOFT_EXAMPLES=0 \
-DALSOFT_INSTALL_CONFIG=0 \
-DALSOFT_INSTALL_HRTF_DATA=0 \
-DALSOFT_INSTALL_AMBDEC_PRESETS=0
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
rm -rv "$pkgdir"/usr/include
}
|