mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:24:36 +08:00
28 lines
968 B
Bash
28 lines
968 B
Bash
pkgname=bzr
|
|
pkgver=2.7.0
|
|
pkgrel=1
|
|
pkgdesc="Bazaar is a version control system that helps you track project history over time and to collaborate easily with others."
|
|
arch=('x86_64')
|
|
url="http://bazaar.canonical.com/"
|
|
license=('GPL')
|
|
depends=('python2')
|
|
optdepends=('python-paramiko: SFTP support')
|
|
source=("http://launchpad.net/${pkgname}/${pkgver%.*}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz")
|
|
md5sums=('8e5020502efd54f5925a14a456b88b89')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed -i 's|man/man1|share/man/man1|' setup.py
|
|
sed -e 's|/usr/bin/env python|/usr/bin/env python2|' \
|
|
-i bzrlib/{plugins/bash_completion/bashcomp.py,tests/ssl_certs/create_ssls.py,patiencediff.py,_patiencediff_py.py}
|
|
python2 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
|
|
|
|
# bash-completion
|
|
install -D -m644 contrib/bash/bzr "${pkgdir}/etc/bash_completion.d/bzr"
|
|
}
|