updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / cpdup-git / PKGBUILD
blob2f263fd18a615926adf91466f464b76a5b399634
1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
3 pkgname='cpdup-git'
4 pkgver=20111103
5 pkgrel=1
6 pkgdesc='A comprehensive filesystem mirroring program - Git Version'
7 url='http://apollo.backplane.com/FreeSrc/'
8 arch=('i686' 'x86_64')
9 license=('BSD')
10 depends=()
12 source=()
13 md5sums=()
15 _gitroot='https://github.com/drizztbsd/cpdup.git'
16 _gitname='cpdup'
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [[ -d "$_gitname" ]]; then
23     cd "$_gitname" && git pull origin
24     msg "The local files are updated."
25   else
26     git clone "$_gitroot" "$_gitname"
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting build..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   make
39 package() {
40   cd "$srcdir/$_gitname-build"
41   install -Dm755 cpdup "${pkgdir}/usr/bin/cpdup"
42   install -Dm644 cpdup.1 "${pkgdir}/usr/share/man/man1/cpdup.1"