updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / mercurial-forest / PKGBUILD
blobcbc71a6fef9d85edb5a08b48183a5a1bfed20342
1 # Contributor: Kosenko Roman <madkite@gmail.com>
2 pkgname=mercurial-forest
3 pkgver=0.9.1
4 pkgrel=1
5 pkgdesc='Forest Extension for Mercurial (allows operations on trees with nested Mercurial repositories)'
6 license='GPL'
7 arch=('i686' 'x86_64')
8 depends=('mercurial>=0.9.3')
9 url='http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension'
10 install="${pkgname}.install"
11 source=()
12 md5sums=()
14 _download_repository_url='http://hg.akoha.org/hgforest'
16 build() {
17         cd ${startdir}/src
18         hg clone ${_download_repository_url} hgforest
19         phyton_version=$(python -V 2>&1 | cut -d' ' -f2)
20         install -m0644 -D hgforest/forest.py $startdir/pkg/usr/lib/python${phyton_version%.*}/site-packages/hgext/forest.py