updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / libreaddata-svn / PKGBUILD
blob94e47165314336f26b50b026e59f0eb6348689a3
1 pkgname=libreaddata-svn
2 pkgver=37
3 pkgrel=1
4 pkgdesc="A library to read data from diferent sources (file, memory...)"
5 arch=('i686' 'x86_64')
6 url="http://code.google.com/p/libreaddata/"
7 license=('LGPL')
8 depends=()
9 makedepends=('gcc' 'subversion' 'cmake')
10 options=()
11 conflicts=('libreaddata')
12 provides=('libreaddata')
13 source=()
14 md5sums=()
16 _svntrunk=https://libreaddata.googlecode.com/svn/trunk/
17 _svnmod=libreaddata
19 build() {
20         cd "$srcdir"
21         
22         if [ -d "$_svnmod/.svn" ]; then
23                 (cd $_svnmod && svn up -r $pkgver)
24         else
25                 svn co $_svntrunk -r $pkgver $_svnmod
26         fi
27         
28         msg "SVN checkout done or server timeout"
29         msg "Starting make..."
30         
31         rm -rf "$srcdir/$_svnmod-build"
32         mkdir -p "$srcdir/$_svnmod-build"
33         cd "$srcdir/$_svnmod-build"
34         
35         cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_svnmod/libreaddata"
36         make
39 package() {
40         cd "$srcdir/$_svnmod-build"
41         make DESTDIR="$pkgdir" install