updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / lib32-portaudio-svn / PKGBUILD
blobd386e384fd18d4de3946bb748a6d2fd969b99998
1 # Maintainer: josephgbr <rafael.f.f1@gmail.com>
3 pkgname=lib32-portaudio-svn
4 pkgver=1798
5 pkgrel=1
6 pkgdesc="A free, cross platform, open-source, audio I/O library. (32 bit)"
7 arch=('x86_64')
8 url="http://www.portaudio.com"
9 license="custom"
10 depends=('lib32-alsa-lib' 'lib32-jack' 'portaudio-svn')
11 makedepends=('subversion' 'gcc-multilib')
12 conflicts=('lib32-portaudio')
13 provides=('lib32-portaudio')
14 options=('!libtool')
16 _svntrunk=https://www.portaudio.com/repos/portaudio/trunk
17 _svnmod=portaudio
19 build() {
20   cd "${srcdir}"
21   msg "Connecting to SVN server...."
23   if [[ -d "${_svnmod}/.svn" ]]; then
24     (cd "${_svnmod}" && svn up -r "${pkgver}")
25   else
26     svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
27   fi
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"
36   #
37   # BUILD HERE
38   #
39   ./configure --prefix=/usr --with-alsa --with-jack \
40                         --libdir=/usr/lib32 CC='gcc -m32'
41   make
44 package() {
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"