2 # Arch Linux package build script
4 # Contributor: Vsevolod Balashov <vsevolod@balashov.name>
11 pkgdesc="git-hg plugin"
13 url="https://github.com/offbytwo/git-hg"
15 depends=('mercurial' 'python-dulwich-git' 'git')
17 provides=('git-fast-export')
18 source=('githghome.patch' 'python2.patch')
19 md5sums=('6ea17d66b7377655398557238f89c33a'
20 'ad3a1e4ee5fc44d2e284a92babcc10bd')
23 _gitroot="https://github.com/offbytwo/git-hg.git"
31 git clone $_gitroot $_gitname
33 git submodule update --init
34 git apply ../githghome.patch
35 git apply ../python2.patch
36 mkdir -p ${pkgdir}/usr/share/git/
37 mkdir -p ${pkgdir}/usr/lib/git-core/
38 cp -r ${srcdir}/${_gitname}/fast-export ${pkgdir}/usr/share/git/
39 install -m 755 ${srcdir}/${_gitname}/bin/git-hg ${pkgdir}/usr/lib/git-core/
41 mkdir -m 755 -p ${pkgdir}/usr/bin
42 install -D -m 755 ${srcdir}/${_gitname}/bin/* ${pkgdir}/usr/bin/