1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from bazaar sources.
9 # Contributor: Alexandre Défossez <alexandre.defossez at google famous mailing service>
13 pkgdesc="An epydoc-like tool"
15 url="http://codespeak.net/~mwh/pydoctor/"
18 depends=('python2' 'nevow' 'twisted' 'zope-interface')
29 _bzrtrunk="lp:pydoctor"
34 msg "Connecting to Launchpad server...."
36 if [ -d $_bzrmod ] ; then
39 msg "The local files are updated."
41 bzr branch "$_bzrtrunk" || return 1
44 msg "Bazaar checkout done or server timeout"
46 rm -rf "$srcdir/$_bzrmod-build"
47 cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
48 cd "$srcdir/$_bzrmod-build"
50 python2 setup.py build || return 1
54 cd "$srcdir/$_bzrmod-build"
55 python2 setup.py install --root="$pkgdir" || return 1
56 install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE