updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / caudio / PKGBUILD
blobe791e3043ac398419ff99951dc18248992fe395e
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
3 pkgname=caudio
4 pkgver=2.1.0
5 pkgrel=1
6 pkgdesc="advanced C++ wrapper around OpenAL"
7 arch=('i686' 'x86_64')
8 url="http://caudio.deathtouchstudios.com"
9 license=('zlib')
10 makedepends=('unzip')
11 depends=('openal' 'libvorbis' 'gcc-libs')
12 #options=('!libtool')
13 source=("http://downloads.sourceforge.net/project/caudio/cAudio_2_1_0/cAudio2.1.0-Linux_64.zip")
14 md5sums=('16dd600d0a0fb2968303f6d4857864dd')
16 build() {
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
32   
33   install -Dm644 ../include/*.h ${pkgdir}/usr/include/cAudio/
34   install -Dm644 ../Headers/*.h ${pkgdir}/usr/include/cAudio/
36   cd ${pkgdir}/usr/lib/
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