updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / diffpac / PKGBUILD
blob5a8c56c6d6972c2279e5b8182b25c2d361554be3
1 pkgname=diffpac
2 pkgver=20100118
3 pkgrel=1
4 pkgdesc="Stand alone replacment for pacdiffviewer"
5 url="http://github.com/bruenig/diffpac"
6 license="GPL"
7 arch=('i686' 'x86_64')
8 makedepends=('git')
9 depends=('grep' 'sed' 'coreutils' 'bash' 'awk' 'pacman' 'diffutils' 'patch' 'findutils')
10 optdepends=('colordiff: colorized diff output')
11 _gitroot='git://github.com/bruenig/diffpac.git'
12 _gitname='diffpac'
14 build() {
15     cd "$startdir/src"
16   
17     msg "Connecting to github GIT server...."
18     
19     if [ -d "$startdir/src/$_gitname" ] ; then
20         cd $_gitname && git pull origin
21     else
22         git clone "$_gitroot"
23         cd $_gitname
24     fi
25       
26     mkdir -p "$startdir/pkg/usr/bin/"
27     install -m 755 diffpac "$startdir/pkg/usr/bin/diffpac"