1 # Contributor: Brennan Frydl <me@bfrydl.com>
2 pkgname='mercurial-server'
5 pkgdesc='Provides easily administered shared SSH access to Mercurial repositories.'
7 url='http://www.lshift.net/mercurial-server.html'
10 install='mercurial-server.install'
11 source=("http://dev.lshift.net/paul/mercurial-server/mercurial-server_$pkgver.tar.gz")
12 md5sums=('8387fd6e66222ddb50af578f6adbc78d')
15 cd "$srcdir/mercurial-server_$pkgver"
16 sed -i 's/python setup.py/python2 setup.py/' Makefile
17 find ./src -type f | xargs sed -i 's/env python/env python2/'
19 make pythonbuild || return 1
20 make PREFIX='/usr/share' DESTDIR="$pkgdir/" installetc pythoninstall