1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
6 pkgdesc="advanced C++ wrapper around OpenAL"
8 url="http://caudio.deathtouchstudios.com"
11 depends=('openal' 'libvorbis' 'gcc-libs')
13 source=("http://downloads.sourceforge.net/project/caudio/cAudio_2_1_0/cAudio2.1.0-Linux_64.zip")
14 md5sums=('16dd600d0a0fb2968303f6d4857864dd')
17 # Note: We're using Linux_64 here but it doesn't actually matter since we're building from source
18 # cAudio doesn't provide a source-only release :(
19 cd "${srcdir}/cAudio${pkgver}-Linux_64/Source"
21 mkdir -p ${pkgdir}/usr/{include,lib}
22 mkdir -p ${pkgdir}/usr/include/cAudio/
23 sed "s|/usr/local|${pkgdir}/usr|g" -i Makefile
24 sed "s|libvorbis\.a|libvorbis\.so|g" -i Makefile
25 sed "s|libvorbisenc\.a|libvorbisenc\.so|g" -i Makefile
26 sed "s|libvorbisfile\.a|libvorbisfile\.so|g" -i Makefile
27 make shared static || return 1
29 # not installing static libs because they are currently broken
30 install -Dm755 libcAudio.2.1.0.so ${pkgdir}/usr/lib/libcAudio.2.1.0.so
31 #install -Dm644 libcAudio.2.1.0.a ${pkgdir}/usr/lib/libcAudio.2.1.0.a
33 install -Dm644 ../include/*.h ${pkgdir}/usr/include/cAudio/
34 install -Dm644 ../Headers/*.h ${pkgdir}/usr/include/cAudio/
37 ln -s libcAudio.2.1.0.so libcAudio.so
38 #ln -s libcAudio.2.1.0.a libcAudio.a
40 install -Dm644 ${srcdir}/cAudio${pkgver}-Linux_64/License.txt ${pkgdir}/usr/share/licenses/caudio/LICENSE