updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / wfile-svn / PKGBUILD
blob3e89297f1ec8c822029de8a547a48f550f26cd6a
1 # Contributor: Shawn Dellysse <sdellysse@radford.edu>
3 pkgname=wfile-svn
4 pkgver=31
5 pkgrel=2
6 pkgdesc='A wrapper around /usr/bin/file which calls 'which' on each argument'
7 url='http://code.google.com/p/sdellysse/'
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('bash' 'which' 'file')
11 makedepends=('subversion')
12 conflicts=('wfile')
13 provides=('wfile')
15 source=()
16 md5sums=()
18 _svntrunk=http://sdellysse.googlecode.com/svn/trunk/wfile
19 _svnmod=wfile
21 build(){
22   cd "$srcdir"
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
30   msg "SVN checkout done or server timeout"
31   
32   install -d -m755 $pkgdir/usr/bin
33   install -m755 $srcdir/$_svnmod/wfile $pkgdir/usr/bin