4 pkgdesc="GUI for radare2 and pyew"
6 url="http://inguma.eu/projects/bokken"
11 optdeps=('pyew' 'radare2 with r2-bindings OR radare2-hg')
12 makedepends=('mercurial')
15 _hgroot=http://inguma.eu/repos/
20 msg "Connecting to Mercurial server...."
22 if [[ -d "$_hgrepo" ]]; then
25 msg "The local files are updated."
27 hg clone "$_hgroot" "$_hgrepo"
30 msg "Mercurial checkout done or server timeout"
31 msg "Starting build..."
33 rm -rf "$srcdir/$_hgrepo-build"
34 hg clone "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
39 mkdir -p ${pkgdir}/usr/share/
40 mv bokken-build ${pkgdir}/usr/share/bokken
41 install -d ${pkgdir}/usr/bin/
43 cat > ${pkgdir}/usr/bin/bokken << 'EOF'
49 chmod +x ${pkgdir}/usr/bin/bokken
52 rm -rf "$srcdir/$_hgrepo-build"