bzr: new vcs package
This commit is contained in:
35
bzr/PKGBUILD
Normal file
35
bzr/PKGBUILD
Normal file
@@ -0,0 +1,35 @@
|
||||
# Maintainer: Martell Malone <martellmalone@gmail.com>
|
||||
|
||||
pkgname=bzr
|
||||
pkgver=2.6.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=('i686' 'x86_64')
|
||||
url="http://bazaar.canonical.com/en/"
|
||||
license=('GPL')
|
||||
groups=('VCS')
|
||||
depends=('python2')
|
||||
optdepends=('python-paramiko: for sftp support')
|
||||
source=("http://launchpad.net/${pkgname}/${pkgver%.*}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz"{,.sig})
|
||||
md5sums=('28c86653d0df10d202c6b842deb0ea35'
|
||||
'SKIP')
|
||||
|
||||
prepare(){
|
||||
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}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user