summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee8a504add4cc5229331891ddb14142644e0f566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Johannes Dewender   arch at JonnyJD dot net
pkgname=bzr-builddeb
_python=python2
pkgver=2.8.8
pkgrel=2
pkgdesc="bzr plugin for Debian package management"
arch=('any')
url="http://jameswestby.net/bzr/builddeb/user_manual"
license=('GPL2')
depends=('bzr>=2.1' 'devscripts' 'dpkg' 'patchutils' 'pristine-tar' 'quilt' 'python2-debian>=0.1.11' 'python2-apt')
optdepends=(
'bzr-svn-plugin: Subversion integration'
'bzr-git-plugin: Git integration'
'python2-pyliblzma: lzma bindings'
'distro-info: for the merge-upstream command')
makedepends=()
conflicts=()
options=(!emptydirs)
source=("http://ftp.debian.org/debian/pool/main/b/$pkgname/${pkgname}_$pkgver.tar.xz")
md5sums=('5a63dabec6731a38dc95ccbdb1c02723')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  $_python setup.py build
  dir="build/lib/bzrlib/plugins/builddeb"
  for file in "$dir/"{merge_changelog,tests/test_merge_package}.py; do
    sed -i -e '1s|/usr/bin/env python$|/usr/bin/env python2|' $file
  done
}
package() {
  cd "$srcdir/$pkgname-$pkgver"
  $_python setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: