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')
19 md5sums=('6ea17d66b7377655398557238f89c33a')
22 _gitroot="https://github.com/offbytwo/git-hg.git"
28 git clone $_gitroot $_gitname
30 git submodule update --init
38 git apply ../githghome.patch
39 mkdir -p ${pkgdir}/usr/share/git/
40 mkdir -p ${pkgdir}/usr/lib/git-core/
41 cp -r ${srcdir}/${_gitname}/fast-export ${pkgdir}/usr/share/git/
42 install -m 755 ${srcdir}/${_gitname}/bin/git-hg ${pkgdir}/usr/lib/git-core/
44 mkdir -m 755 -p ${pkgdir}/usr/bin
45 install -D -m 755 ${srcdir}/${_gitname}/bin/* ${pkgdir}/usr/bin/