1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Sebastien Binet <sebastien.binet@cern.ch>
7 pkgdesc="a simple work-in-progress C-API binding to the C++ ROOT framework."
8 url="http://bitbucket.org/binet/croot"
12 makedepend=('mercurial')
14 _hgroot="http://bitbucket.org/binet"
19 msg "Connecting to $_hgroot"
20 if [ -d $_hgrepo ]; then
22 hg pull -u || return 1
23 msg2 "Finished updating the local repository!"
25 hg clone ${_hgroot}/${_hgrepo} "${srcdir}/${_hgrepo}" || return 1
26 msg2 "Initial pull complete!"
29 ./waf configure --prefix=/usr || return 1
30 ./waf build || return 1
34 cd "${srcdir}/${_hgrepo}"
35 DESTDIR="$pkgdir" ./waf install || return 1
36 install -D -m644 LICENSE "$pkgdir/usr/share/licenses/croot/LICENSE" || return 1