updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mbkp-hg / PKGBUILD
blobb3e6163c41bc76dfef5b513845d3e99dd455a4b8
1 # Contributor: SanskritFritz (gmail)
3 pkgname="mbkp-hg"
4 pkgver=102
5 pkgrel=1
6 pkgdesc="Provides modular backups using duplicity."
7 url="https://bitbucket.org/elifarley/mbkp/wiki/Home"
8 license=("GPL")
9 arch=("any")
10 depends=("duplicity")
11 makedepends=("mercurial" "perl")
12 provides=("mbkp")
13 conflicts=("mbkp")
15 _hgroot="https://bitbucket.org/elifarley"
16 _hgrepo="mbkp"
18 build() {
19         cd "$srcdir"
20         if [ -d "$_hgrepo" ] ; then
21                 cd "$_hgrepo"
22                 hg pull
23                 hg update
24         else
25                 hg clone $_hgroot/$_hgrepo
26         fi
29 package() {
30         cd "$srcdir/$_hgrepo/installer"
31         ./install.sh "$pkgdir/usr"