updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / libvorbis-svn / PKGBUILD
blobe0cc4ec2477eb2e70651e8fff74c0c87b0cc8f60
1 pkgname=libvorbis-svn
2 pkgver=16950
3 pkgrel=1
4 arch=('x86_64' 'i686')
5 pkgdesc="Vorbis codec library"
6 url="http://www.xiph.org/ogg/vorbis"
7 license=('custom')
8 depends=('libogg>=1.1.4')
9 makedepends=('subversion')
10 provides=('libvorbis=1.3.1')
11 conflicts=('libvorbis')
13 _svntrunk=http://svn.xiph.org/trunk/vorbis
14 _svnmod=libvorbis
16 build() {
17         cd "$srcdir"
19         if [ -d $_svnmod/.svn ]; then
20                 (cd $_svnmod && svn up -r $pkgver)
21         else
22                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
23         fi
25         msg "SVN checkout done or server timeout"
26         msg "Starting make..."
28         rm -rf "$srcdir/$_svnmod-build"
29         cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
30         cd "$srcdir/$_svnmod-build"
32         ./autogen.sh --prefix=/usr
33         make || return 1
34         make DESTDIR="$pkgdir/" install || return 1
36         rm -rf "$srcdir/$_svnmod-build"