1 # Maintainer: josephgbr <rafael.f.f1@gmail.com>
3 pkgname=lib32-portaudio-svn
6 pkgdesc="A free, cross platform, open-source, audio I/O library. (32 bit)"
8 url="http://www.portaudio.com"
10 depends=('lib32-alsa-lib' 'lib32-jack' 'portaudio-svn')
11 makedepends=('subversion' 'gcc-multilib')
12 conflicts=('lib32-portaudio')
13 provides=('lib32-portaudio')
16 _svntrunk=https://www.portaudio.com/repos/portaudio/trunk
21 msg "Connecting to SVN server...."
23 if [[ -d "${_svnmod}/.svn" ]]; then
24 (cd "${_svnmod}" && svn up -r "${pkgver}")
26 svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
29 msg "SVN checkout done or server timeout"
30 msg "Starting build..."
32 rm -rf "${srcdir}/${_svnmod}-build"
33 svn export "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
34 cd "${srcdir}/${_svnmod}-build"
39 ./configure --prefix=/usr --with-alsa --with-jack \
40 --libdir=/usr/lib32 CC='gcc -m32'
45 cd "${srcdir}/${_svnmod}-build"
46 make DESTDIR="${pkgdir}" install
47 rm -rf "${pkgdir}/usr/include"
48 install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"