updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / hgshelve-hg / PKGBUILD
blob82d3ee959e7ccf935e2568faa17af82fd195e12a
2 # Contributor: Gour-Gadadhara Dasa <gour@atmarama.net>
5 name=hgshelve
6 pkgname=$name-hg
7 pkgver=38
8 pkgrel=1
9 pkgdesc="Shelve Extension for Mercurial"
10 arch=(any)
11 url="https://bitbucket.org/tksoh/hgshelve/wiki/Home"
12 license=('GPL2')
13 install=$pkgname.install
14 depends=('mercurial')
15 makedepends=('mercurial')
17 _hgroot="https://bitbucket.org/tksoh"
18 _hgrepo=$name
20 build() {
21   cd "$srcdir/$name"
22   python_version=$(python2 -V 2>&1 | cut -d' ' -f2 | cut -d'.' -f1,2)
23   install -m0644 -D hgshelve.py $pkgdir/usr/lib/python${python_version}/site-packages/hgext/hgshelve.py || return 1