updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mercurial-server / PKGBUILD
blob4f219b42903c4f481f9874ac539b871cfe197bf7
1 # Contributor: Brennan Frydl <me@bfrydl.com>
2 pkgname='mercurial-server'
3 pkgver=1.1
4 pkgrel=1
5 pkgdesc='Provides easily administered shared SSH access to Mercurial repositories.'
6 arch='any'
7 url='http://www.lshift.net/mercurial-server.html'
8 license=('GPL')
9 depends=('python2')
10 install='mercurial-server.install'
11 source=("http://dev.lshift.net/paul/mercurial-server/mercurial-server_$pkgver.tar.gz")
12 md5sums=('8387fd6e66222ddb50af578f6adbc78d')
14 build() {
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