updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / vorbose-svn / PKGBUILD
blobc0683a4a04fb7564f1d3d92d0c0b62cffb7bee4c
1 # Contributor: Anders Bergh <anders1@gmail.com>
2 pkgname=vorbose-svn
3 pkgver=16184
4 pkgrel=1
5 pkgdesc="Vorbis I header/stream information dump tool"
6 arch=(i686 x86_64)
7 url="http://www.xiph.org"
8 license=('GPL')
9 depends=('libogg2')
10 makedepends=('subversion')
11 provides=('vorbose')
12 conflicts=('vorbose')
13 source=()
14 md5sums=()
16 _svntrunk=http://svn.xiph.org/trunk/vorbose
17 _svnmod=vorbose
19 build() {
20   cd "$srcdir"
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_svnmod-build"
32   svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33   cd "$srcdir/$_svnmod-build"
35   aclocal || exit 1
36   autoheader || exit 1
37   automake --add-missing || exit 1
38   autoconf || exit 1
40   ./configure --prefix=/usr
41   make || return 1
42   make DESTDIR="$pkgdir" install