diff options
author | Lubosz Sarnecki | 2015-06-22 22:55:09 +0200 |
---|---|---|
committer | Lubosz Sarnecki | 2015-06-22 22:55:09 +0200 |
commit | 286058273dbf2b94f01b35f92490221ec4fda159 (patch) | |
tree | 587ffdd2582ff133ae76721d0d80ddfdc98ef1a2 /PKGBUILD | |
download | aur-git-bzr-ng.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f19c9cfe112d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Lubosz Sarnecki <lubosz@gmail.com> +# Former Maintainers: Evan Martin <martine@danga.com>, Andy Smith <andy@term.ie> +# Packager: Samir Faci <csgeek@esamir.com> +# Contributor: Nuno Araujo <nuno.araujo at russo79.com> + +pkgname=git-bzr-ng +pkgver=61.9878a30 +pkgrel=1 +pkgdesc="bi-directional git to bzr bridge: never fear bzr again" +arch=('any') +url="http://github.com/termie/git-bzr-ng" +license=('GPL') +depends=('git' 'bzr' 'bzr-fastimport') +makedepends=() + +source=('git+http://github.com/termie/git-bzr-ng.git') +md5sums=("SKIP") + +pkgver() { + cd git-bzr-ng + revision=$(git rev-list --count HEAD) + hash=$(git log --pretty=format:'%h' -n 1) + echo $revision.$hash +} + +build() { + cd git-bzr-ng + + # python2 fix + for file in $(find . -type f -name '*' -print); do + sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file + done +} + +package() { + cd git-bzr-ng + install -d "${pkgdir}/usr/lib/git-core/" + install -o root -g root -m655 git-bzr ${pkgdir}/usr/lib/git-core/ +} |