1 # Maintainer: Emmanuel Gras <gras.emmanuel@gmail.com>
6 pkgdesc="An assembly manipulation suite written in Ruby"
8 url="http://metasm.cr0.org/"
11 makedepends=('mercurial')
12 optdepends=('ruby-gtk2: gui support')
14 install=metasm.install
17 _hgroot="http://metasm.cr0.org/hg/metasm"
22 msg "Connecting to Mercurial server...."
24 if [ -d $_hgrepo ] ; then
27 msg "The local files are updated."
29 hg clone $_hgroot $_hgrepo
32 msg "Mercurial checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_hgrepo-build"
36 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
37 cd "$srcdir/$_hgrepo-build"
39 # remove mercurial files
44 cd "$srcdir/$_hgrepo-build"
45 mkdir -p $pkgdir/opt/metasm
46 cp -a * $pkgdir/opt/metasm