4 pkgdesc="GUI for radare2 and pyew"
6 url="http://inguma.eu/projects/bokken"
8 depends=('python2' 'pygtksourceview2')
9 optdeps=('pyew' 'radare2 with r2-bindings OR radare2-hg')
10 makedepends=('mercurial')
13 _hgroot=http://inguma.eu/repos/
18 msg "Connecting to Mercurial server...."
20 if [[ -d "$_hgrepo" ]]; then
23 msg "The local files are updated."
25 hg clone "$_hgroot" "$_hgrepo"
28 msg "Mercurial checkout done or server timeout"
29 msg "Starting build..."
31 rm -rf "$srcdir/$_hgrepo-build"
32 hg clone "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
37 mkdir -p ${pkgdir}/usr/share/
38 mv bokken-build ${pkgdir}/usr/share/bokken
39 install -d ${pkgdir}/usr/bin/
41 cat > ${pkgdir}/usr/bin/bokken << 'EOF'
47 chmod +x ${pkgdir}/usr/bin/bokken
50 rm -rf "$srcdir/$_hgrepo-build"