updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / fileid-svn / PKGBUILD
blob51219a1f676c8cc9d1642c61e12a4b8f7af9bf2d
1 # Maintainer: Eduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com>
3 pkgname=fileid-svn
4 pkgver=86
5 pkgrel=1
6 pkgdesc="File type identifier"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/fileid/"
9 license=('LGPL')
10 depends=('libfsaction-svn' 'libreaddata-svn')
11 makedepends=('gcc' 'subversion' 'cmake' 're2c' 'libfsaction-svn' 'libreaddata-svn' 'libreadopt-svn')
12 options=()
13 conflicts=('fileidcheck' 'libfileid')
14 provides=('fileidcheck' 'libfileid')
15 source=()
16 md5sums=()
18 _svntrunk=https://fileid.googlecode.com/svn/trunk/
19 _svnmod=fileid
21 build() {
22         cd "$srcdir"
23         
24         if [ -d "$_svnmod/.svn" ]; then
25                 (cd $_svnmod && svn up -r $pkgver)
26         else
27                 svn co $_svntrunk -r $pkgver $_svnmod
28         fi
29         
30         msg "SVN checkout done or server timeout"
31         msg "Starting make..."
32         
33         rm -rf "$srcdir/$_svnmod-build"
34         mkdir -p "$srcdir/$_svnmod-build"
35         cd "$srcdir/$_svnmod-build"
36         
37         cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_svnmod/fileid"
38         make
41 package() {
42         cd "$srcdir/$_svnmod-build"
43         make DESTDIR="$pkgdir" install