Created
October 3, 2012 04:20
-
-
Save hacosta/3824977 to your computer and use it in GitHub Desktop.
bzr-fastimport PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Kambus | |
# Contributor: Mario Danic <mario.danic> | |
pkgname=bzr-fastimport | |
pkgver=0.13.0 | |
pkgrel=1 | |
pkgdesc="Bazaar Fast Import is a plugin providing fast loading of revision control data into Bazaar." | |
arch=(i686 x86_64) | |
url="https://launchpad.net/${pkgname}" | |
license=('GPLv2' 'MIT') | |
groups=(bzr) | |
depends=('python2' 'setuptools' 'bzr' 'python2-fastimport-bzr') | |
makedepends=('bzr') | |
conflicts=(bzr-fastimport-bzr bzr-fastimport-russo79-bzr bzr-fastimport-deleted-entries-fix) | |
source=(http://launchpad.net/${pkgname}/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz) | |
md5sums=('e47115774d44ae0c3b027ae0374aa52e') | |
build() { | |
cd ${srcdir}/${pkgname}-${pkgver} | |
for _file in $(grep '#!/usr/bin/.*python' -r . | cut -d: -f1); do | |
sed -i 's/python/python2/' "$_file" | |
done | |
#sed -i "s/actual_args = \['python', /actual_args = \['python2', /" ./exporters/__init__.py | |
python2 setup.py install --prefix'=/usr' --root=$pkgdir || return 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment