On 17/02/10 16:29, Chris Baker wrote:
> Attached is a PKGBUILD that should work. It fails due to a bug in their
> version numbering system. Oh the irony!

Thanks for that.  It got me off in the right direction.

I've attached a slightly updated version that seems to work fine.

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe
# Contributor: Chris Baker <[email protected]>
# Unfortunately it's not possible to get bzr to show version info of remote
# repos, to find pkgver manually use:
#   bzr version-info --custom --template="{revno}\n"

pkgname=bugseverywhere-bzr
pkgver=330
pkgrel=1
pkgdesc="Distributed bugtracker"
arch=('x86', 'x86_64')
url="http://bugseverywhere.org/";
license=('GPL2')
depends=('python-yaml')
makedepends=('bzr')
_bzrroot="http://bzr.bugseverywhere.org/be";
_bzrname="be"

build() {
  cd $srcdir
  msg "Connecting to Bazaar server..."

  if [ -d $_bzrname ] ; then
    msg "Updating local files..."
    cd $_bzrname
    bzr revert --no-backup
    bzr up
  else
    msg "Checking out repository..."
    bzr get $_bzrroot $_bzrname
    cd $_bzrname
  fi

  msg "Bazaar checkout done or server timeout"
  msg "Starting make..."

  # remove the man page, docbook-to-man doesn't seem to exist in ArchLinux
  sed -e "s,.*share/man.*,,g" -i setup.py

  # only do the relevant bits of the Makefile
  make libbe/_version.py
  python setup.py install --root=$pkgdir/ --optimize=1 || return 1
} 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to